Closed Bug 1574506 Opened 5 years ago Closed 5 years ago

Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function

Categories

(DevTools :: Inspector, task, P1)

task

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: gl, Assigned: gl)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m1)

Attachments

(1 file)

This is blocked on work to convert grips into ObjectFronts so that we can get the contextual WalkerFront when we are calling walkerFront.gripToNodeFront.

When we either have a reference to the target or the grip becomes an ObjectFront, we would have access to the getter targetFront which will allow us to get the contextual WalkerFront for the given grip.

const walkerFront = (await grip.targetFront.getFront("inspector")).walker;
const nodeFront = await walkerFront.gripToNodeFront(grip);
Whiteboard: dt-fission
Depends on: 1586201

In Bug 1586201, we'll add a new function to get a NodeFront, in the right context, from a given element grip.
We should make sure to use this new function instead of the current gripToNodeFront in the codebase.

Summary: Use the contextual WalkerFront when calling gripToNodeFront → Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function
Assignee: nobody → gl
Status: NEW → ASSIGNED
Priority: P2 → P1
Pushed by gluong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bddcd12198e7
Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function. r=nchevobbe
Flags: needinfo?(gl)
Pushed by gluong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5a8b6efcadb8
Migrate usage of gripNodeToFront to toolbox's new getNodeFrontFromNodeGrip function. r=nchevobbe

(In reply to Dorel Luca [:dluca] from comment #5)

Backed out changeset bddcd12198e7 (bug 1574506) for Devtools failures in devtools/client/inspector/extensions/test/browser_inspector_extension_sidebar.js. CLOSED TREE

Log;
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=272453773&repo=autoland&lineNumber=1653

Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=bddcd12198e7292e71adba0c0fcbf127e89dda73

Backout:
https://hg.mozilla.org/integration/autoland/rev/e2176222924f2a48bcf3214702c0a66e7fa3ce37

Fixed a typo and relanded.

Flags: needinfo?(gl)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
Whiteboard: dt-fission → dt-fission dt-fission-m1
Whiteboard: dt-fission dt-fission-m1 → dt-fission-m1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: