зеркало из 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 |
||
---|---|---|
.. | ||
commands | ||
compatibility | ||
css | ||
discovery | ||
heapsnapshot | ||
inspector | ||
jsbeautify | ||
layout | ||
locales | ||
node-properties | ||
performance | ||
performance-new | ||
platform | ||
protocol | ||
qrcode | ||
security | ||
specs | ||
sprintfjs | ||
storage | ||
test-helpers | ||
tests | ||
transport | ||
webconsole | ||
worker | ||
.eslintrc.js | ||
DevToolsUtils.js | ||
Loader.jsm | ||
ThreadSafeDevToolsUtils.js | ||
accessibility.js | ||
async-storage.js | ||
async-utils.js | ||
base-loader.js | ||
builtin-modules.js | ||
constants.js | ||
content-observer.js | ||
debounce.js | ||
defer.js | ||
dom-helpers.js | ||
dom-node-constants.js | ||
dom-node-filter-constants.js | ||
event-emitter.js | ||
extend.js | ||
flags.js | ||
generate-uuid.js | ||
indentation.js | ||
indexed-db.js | ||
jar.mn | ||
l10n.js | ||
loader-plugin-raw.jsm | ||
moz.build | ||
natural-sort.js | ||
path.js | ||
picker-constants.js | ||
plural-form.js | ||
protocol.js | ||
system.js | ||
throttle.js | ||
validate-breakpoint.jsm | ||
wasm-source-map.js | ||
webextension-fallback.html |