зеркало из https://github.com/mozilla/gecko-dev.git
d0f503f1f1
`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 |
||
---|---|---|
.. | ||
addon | ||
descriptors | ||
inspector | ||
targets | ||
worker | ||
accessibility.js | ||
animation.js | ||
array-buffer.js | ||
breakpoint-list.js | ||
changes.js | ||
compatibility.js | ||
css-properties.js | ||
device.js | ||
eventsource.js | ||
frame.js | ||
framerate.js | ||
highlighters.js | ||
inspector.js | ||
layout.js | ||
manifest.js | ||
media-rule.js | ||
memory.js | ||
moz.build | ||
network-content.js | ||
network-parent.js | ||
node.js | ||
object.js | ||
page-style.js | ||
perf.js | ||
performance-recording.js | ||
performance.js | ||
preference.js | ||
private-properties-iterator.js | ||
property-iterator.js | ||
reflow.js | ||
responsive.js | ||
root.js | ||
screenshot-content.js | ||
screenshot.js | ||
source.js | ||
storage.js | ||
string.js | ||
style-rule.js | ||
style-sheet.js | ||
style-sheets.js | ||
symbol-iterator.js | ||
target-configuration.js | ||
thread-configuration.js | ||
thread.js | ||
walker.js | ||
watcher.js | ||
webconsole.js | ||
websocket.js |