Closed Bug 1679503 Opened 5 years ago Closed 5 years ago

Make getNodeFrontInFrame helper fission compatible

Categories

(DevTools :: Inspector, task)

task

Tracking

(Fission Milestone:M7, firefox85 fixed)

RESOLVED FIXED
85 Branch
Fission Milestone M7
Tracking Status
firefox85 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 external file)

The helper can be used in inspector test to retrieve the node front for an element inside an iframe devtools/client/inspector/test/head.js#286-300
Unfortunately, the helper does not work on remote frame when fission is enabled.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Summary: Make → Make getNodeFrontInFrame helper fission compatible

The helper wasn't working for element in remote frame when Fission was enabled.
We fix this by first retrieving the iframe associated target front and related
walker front.
Then we can check if the walker is different from the top-level one, and call
querySelector with the appropriate queryNode.

Fission Milestone: --- → M7
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a35c0d41e827 [devtools] Make getNodeFrontInFrame helper Fission-compatible. r=rcaliman.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: