Preserve selected node in markup view when reloading page with iframe
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(firefox72 fixed)
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(4 files)
The inspector currently attempts to reselect the selected node in the markup view when reloading the page.
It does so by keeping track of the CSS selector of the currently selected element.
However this doesn't support elements nested in iframes or webcomponents.
We would like to introduce iframes in our DAMP tests. Supporting this feature would make the inspector tests more relevant when using an iframe.
See Bug 1589011
Assignee | ||
Comment 1•5 years ago
|
||
Cleanup before adding more content to the walker front
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D49938
This helper can be moved on the walker front and will be useful to find the selected node front after a page reload
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D49939
Small fix on the findNodeFront helper. The walker should be able to calculate its depth without relying on consumers to remove selectors from the array passed to findNodeFront.
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D49940
To support this feature we perform two main changes
- the node actor exposes a getAllSelectors method, and the inspector now stores all selectors rather than just one
- the node actor exposes a waitForFrameLoad method, and the walkerFront findNodeFront helper uses it to make sure frames are loaded before querying a selector
Also added a test
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3354b8426f38
https://hg.mozilla.org/mozilla-central/rev/35bb8f4411e5
https://hg.mozilla.org/mozilla-central/rev/8a9767a9ed77
https://hg.mozilla.org/mozilla-central/rev/78b0791bfb15
Description
•