Closed Bug 1652445 Opened 4 years ago Closed 4 years ago

Use root node resource for all frames navigations

Categories

(DevTools :: Inspector, task, P3)

task

Tracking

(Fission Milestone:M6c, firefox81 fixed)

RESOLVED FIXED
81 Branch
Fission Milestone M6c
Tracking Status
firefox81 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m2-mvp)

Attachments

(6 files)

Currently, the root-node resource is only used when the topmost level of a given target changes.

If a target contains same-process frames, a navigation will be handled in the same it was pre-fission: we emit two fake mutations: "documentUnload" and "frameLoad" (as well as additional fake "childList" mutations with empty added and removed arrays).

This means we need to maintain two codepaths for similar tasks: one using the root node resource, one using the mutations.

At some point we should get one target per window global, which would solve the inconsistency. But it might be better to address this sooner.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Blocking Bug 1644190. I tried to start migrating the root node fully to the server, but the mix of mutations and events in the Walker actor at the moment makes it difficult to reason about. Will be much easier if this is addressed first.

Blocks: 1644190
Depends on: 1625961

Optional cleanup, but the _ref method name makes it hard to understand when we are reading the actor cache vs creating new actors.

Whiteboard: dt-fission-m2-mvp

Tracking dt-fission-m2-mvp bugs for Fission Nightly milestone (M6c).

Fission Milestone: --- → M6c
Attachment #9166260 - Attachment description: Bug 1652445 - Rename WalkerActor _ref method to _getOrCreateNodeActor → Bug 1652445 - Rename WalkerActor _ref method and _refMap property

Depends on D85597

newRoot mutations are no longer emitted by any server we support, we can remove the corresponding client code.

Depends on D85598

This test relies on mutations which are no longer emitted for most navigations and which will no longer be emitted at all with the next patches.
It has been disabled for 9 months and should be removed.

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a99f92bd4815
Rename WalkerActor _ref method and _refMap property r=gl
https://hg.mozilla.org/integration/autoland/rev/24166ec8744b
Remove outdated traits from NodeActor r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/a7435c1518d9
Remove backward compatibility code for newRoot mutations r=rcaliman
https://hg.mozilla.org/integration/autoland/rev/a1d88e105644
Remove skipped & outdated test browser_inspector-mutations-frameload.js r=ochameau
https://hg.mozilla.org/integration/autoland/rev/54d7c064365e
Use root node resource to detect navigation for all frames r=rcaliman,ochameau
https://hg.mozilla.org/integration/autoland/rev/4d51d99a85a4
Fix highlighters overlay to react to frame navigation r=rcaliman
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: