gecko-dev/devtools/shared
Nicolas Chevobbe d0f503f1f1 Bug 1733537 - [devtools] Replace usage of NodeFront#getAllSelectors with a command. r=jdescottes,devtools-backward-compat-reviewers.
`getAllSelectors` was used to retrieve a given nodeFront selector from the top
window (e.g. it would go up through documents).
This doesn't work with nodeFronts in remote frames, as we wouldn't be able to
reach for cross-process parent documents.
This patchs adds a new inspector command that computes the selector, reaching the
different documents.
All usages of `NodeFront#getAllSelectors` are switched to the new command, which
allows us to delete the method and another function that was only used there.
With the new command doing a bit more work, this highlighted some issue in our
codebase. Some consumers were relying on `selectionCssSelectors`, without waiting
for it to be updated when a new node was selected.
As a result a few tests were failing because of this.
So where it's possible and not perf critical, we simply compute the selector again.
We also emit a new event, `selection-css-selectors-updated`, so tests can wait
until it's properly set before doing further actions.

Differential Revision: https://phabricator.services.mozilla.com/D127928
2021-11-04 08:58:05 +00:00
..
commands Bug 1733537 - [devtools] Replace usage of NodeFront#getAllSelectors with a command. r=jdescottes,devtools-backward-compat-reviewers. 2021-11-04 08:58:05 +00:00
compatibility Bug 1736257: Update MDN compat data. r=Honza 2021-10-18 12:04:10 +00:00
css Bug 1738616 - Enable color-scheme for nightly and early beta. r=hiro 2021-11-01 10:53:36 +00:00
discovery
heapsnapshot Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium 2021-08-25 10:46:17 +00:00
inspector Bug 1733537 - [devtools] Replace usage of NodeFront#getAllSelectors with a command. r=jdescottes,devtools-backward-compat-reviewers. 2021-11-04 08:58:05 +00:00
jsbeautify
layout Bug 1730167 - [devtools] Use appropriate walker front to retrieve frame children when EFT is enabled. r=ochameau 2021-10-01 16:24:49 +00:00
locales Bug 1687915 - [devtools] Display a warning message when the --selector argument passed to :screenshot does not match any node. r=ladybenko. 2021-01-29 15:04:52 +00:00
node-properties
performance
performance-new Bug 1721072 - Clarify ActorReadyGeckoProfilerInterface situation. r=canaltinova 2021-07-22 18:54:30 +00:00
platform Bug 1717897 - [devtools] Remove NetworkHelper.nsIURL which leaks all generated nsIURL r=Honza 2021-06-24 13:32:20 +00:00
protocol Bug 1732120 - [devtools] Rename BrowsingContextTargetActor to WindowGlobalTargetActor. r=nchevobbe,devtools-backward-compat-reviewers 2021-09-27 12:16:11 +00:00
qrcode
security Bug 1733643 - [devtools] Remove Promise.jsm usage in devtools/shared/security/socket.js. r=ochameau. 2021-10-04 11:39:22 +00:00
specs Bug 1733537 - [devtools] Replace usage of NodeFront#getAllSelectors with a command. r=jdescottes,devtools-backward-compat-reviewers. 2021-11-04 08:58:05 +00:00
sprintfjs
storage
test-helpers Bug 1735632 - [devtools] Avoid running allocation tracker test on code coverage builds. r=jdescottes 2021-10-15 06:19:52 +00:00
tests Bug 1384527 - [devtools] Stop using Promise.jsm in DevTools. r=ochameau. 2021-10-11 16:30:06 +00:00
transport Bug 1699111 - [devtools] Rename transports onClosed callback to onTransportClosed. r=jdescottes 2021-04-13 13:44:24 +00:00
webconsole Bug 1658238 - Autocomplete source-mapped variable names r=nchevobbe 2021-10-19 11:40:09 +00:00
worker Bug 1731967 - [devtools] Renamed all "watched data" to "session data". r=nchevobbe 2021-10-13 16:35:05 +00:00
.eslintrc.js
DevToolsUtils.js
Loader.jsm Bug 1384527 - [devtools] Stop using Promise.jsm in DevTools. r=ochameau. 2021-10-11 16:30:06 +00:00
ThreadSafeDevToolsUtils.js
accessibility.js
async-storage.js
async-utils.js Bug 1726237 - [devtools] Fix intermittent failures with error type getGrids failed r=jdescottes 2021-08-26 18:32:12 +00:00
base-loader.js
builtin-modules.js Bug 1410470 - [devtools] Stop using unreliable 'instanceof Ci.nsIDOMWindow'. r=nchevobbe,smaug 2021-10-13 15:56:54 +00:00
constants.js
content-observer.js
debounce.js
defer.js
dom-helpers.js
dom-node-constants.js
dom-node-filter-constants.js
event-emitter.js Bug 1709997 - [devtools] Add AbortController support to EventEmitter. r=jdescottes. 2021-07-12 07:13:13 +00:00
extend.js
flags.js
generate-uuid.js Bug 1602940 - Manual fixes to fix issues in files. r=Gijs,necko-reviewers,rpl,kershaw 2021-09-06 09:53:52 +00:00
indentation.js
indexed-db.js
jar.mn
l10n.js
loader-plugin-raw.jsm
moz.build Bug 1727837 - [devtools] Add API to log dominators of suspicious objects. r=jdescottes 2021-09-13 07:47:06 +00:00
natural-sort.js
path.js
picker-constants.js
plural-form.js
protocol.js
system.js
throttle.js
validate-breakpoint.jsm Bug 1731967 - [devtools] Renamed all "watched data" to "session data". r=nchevobbe 2021-10-13 16:35:05 +00:00
wasm-source-map.js
webextension-fallback.html