gecko-dev/devtools/client/fronts
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
..
addon Bug 1699493 - [devtools] Migrate WebExtInspectedWindow front to a command. r=nchevobbe,rpl 2021-04-01 10:31:43 +00:00
descriptors Bug 1675456 - [devtools] Enable watcher for webextension toolboxes. r=nchevobbe,devtools-backward-compat-reviewers 2021-11-03 11:08:54 +00:00
inspector Bug 1679539 - [devtools] Remove Promise.jsm usage in fronts. r=bomsy. 2021-09-30 12:28:49 +00:00
targets Bug 1737255 - [devtools] Remove backward compatibilty code for this.traits r=jdescottes 2021-10-22 19:41:10 +00:00
worker
accessibility.js Bug 1730167 - [devtools] Use appropriate walker front to retrieve frame children when EFT is enabled in a11y panel. r=ochameau. 2021-10-01 16:24:50 +00:00
animation.js Bug 1699040: Send properties as a part of status. r=jdescottes,devtools-backward-compat-reviewers 2021-03-29 08:21:31 +00:00
array-buffer.js
breakpoint-list.js
changes.js
compatibility.js
css-properties.js Bug 1712389 - Update devtools to allow valid CSS variables. r=jdescottes 2021-06-02 09:27:15 +00:00
device.js
eventsource.js
frame.js
framerate.js
highlighters.js
inspector.js Bug 1727838 - [devtools] Avoid leaking InspectorFront via the STYLESHEET resource listener. r=nchevobbe 2021-10-01 11:36:48 +00:00
layout.js Bug 1726237 - [devtools] Fix intermittent failures with error type getGrids failed r=jdescottes 2021-08-26 18:32:12 +00:00
manifest.js
media-rule.js
memory.js
moz.build Bug 1499679 - [devtools] Add PrivatePropertiesIterator actor to retrieve private properties of a given object. r=bomsy,devtools-backward-compat-reviewers. 2021-05-26 12:44:00 +00:00
network-content.js
network-parent.js
node.js 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
object.js Bug 1701790 - Migrate ResourceWatcher to become ResourceCommand. r=nchevobbe 2021-05-04 09:29:47 +00:00
page-style.js
perf.js
performance-recording.js
performance.js Bug 1726238 - [devtools] Fix browser_toolbox_backward_forward_navigation.js intermittent failure. r=bomsy 2021-09-01 08:30:23 +00:00
preference.js
private-properties-iterator.js Bug 1499679 - [devtools] Add PrivatePropertiesIterator actor to retrieve private properties of a given object. r=bomsy,devtools-backward-compat-reviewers. 2021-05-26 12:44:00 +00:00
property-iterator.js
reflow.js
responsive.js
root.js Bug 1722553 - [devtools] Avoid enabling server targets for WebExtension commands. r=jdescottes 2021-07-28 12:04:32 +00:00
screenshot-content.js Bug 1678483 - [devtools] Make capture-screenshot fission compatible. r=jdescottes,devtools-backward-compat-reviewers. 2021-02-05 09:25:02 +00:00
screenshot.js Bug 1678483 - [devtools] Make capture-screenshot fission compatible. r=jdescottes,devtools-backward-compat-reviewers. 2021-02-05 09:25:02 +00:00
source.js
storage.js Bug 1709672 - [devtools] Memoize StorageActor.listStores result. r=nchevobbe 2021-05-07 10:32:03 +00:00
string.js
style-rule.js Bug 1679539 - [devtools] Remove Promise.jsm usage in fronts. r=bomsy. 2021-09-30 12:28:49 +00:00
style-sheet.js Bug 1679539 - [devtools] Remove Promise.jsm usage in fronts. r=bomsy. 2021-09-30 12:28:49 +00:00
style-sheets.js
symbol-iterator.js
target-configuration.js Bug 1729500 - [devtools] Implement TargetConfigurationCommands.supports r=jdescottes 2021-09-14 12:46:48 +00:00
thread-configuration.js Bug 1687954 - [devtools] Add thread configuration actor r=ochameau,devtools-backward-compat-reviewers 2021-03-16 17:26:10 +00:00
thread.js
walker.js Bug 1735551 - [devtools] Turn WalkerFront#findNodeFront into a command. r=ochameau. 2021-11-04 08:58:03 +00:00
watcher.js Bug 1728072 - [devtools] Use innerWindowId to match DOCUMENT_EVENT's will-navigate's target front. r=nchevobbe 2021-10-14 09:15:11 +00:00
webconsole.js Bug 1717724 - [devtools] Remove web console actor traits. r=nchevobbe,devtools-backward-compat-reviewers 2021-10-19 12:27:59 +00:00
websocket.js