Blank inspector when using target-switching and fission
Categories
(DevTools :: Inspector, task, P1)
Tracking
(Fission Milestone:M6a, firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Whiteboard: dt-fission-m2-mvp)
Attachments
(4 files, 22 obsolete files)
What were you doing?
- set fission.autostart=true
- set devtools.target-switching.enabled=true
- restart Firefox
- open google.com, open the inspector
- navigate to mozilla.org
What happened?
Inspector will be blank with several errors in the stdout, mostly related to inspector-utils APIs called for an element that has apparently no ownerGlobal.
Spotted while reviewing https://bugzilla.mozilla.org/show_bug.cgi?id=1568874. It could be nice to fix the inspector a little bit (even if it's not perfect) it would make testing such patches easier. If the inspector is broken it's a bit hard to say if the sidebar panels support target-switching correctly or not.
For instance
"Error while calling actor 'domnode's method 'getAllSelectors'" "can't access property \"CSS\", ele.ownerGlobal is null"
What should have happened?
Target-switching for the inspector, with fission, never fully worked, even right after landing the initial support for it in Bug 1578242, but I think it's because the focus was rather on using targetlist apis, and maybe supporting the non-fission target switching (parent process <-> content process).
But most of the errors seem to come from the fact that we are trying to trigger the "onNewRoot" too soon on the inspector side. Looking at _onTargetAvailable, the method ends with
if (this.isReady) {
this.onNewRoot();
}
If instead, we replace it with
if (this.isReady) {
this.walker.on("new-root", this.onNewRoot);
}
The inspector seems to work better, at least when testing locally. Ideally, the walker would provide a way to know if the initial load is already done so that we can either call newRoot immediately or wait for the "new-root" event.
Anything else we should know?
The current comment above the onNewRoot call in _onTargetAvailable already mentions something similar, suggesting to share the code called in deferredOpen: https://searchfox.org/mozilla-central/rev/e878e5b81bb319c141900ce9cfcde732df5c8449/devtools/client/inspector/inspector.js#244-256
Assignee | ||
Comment 1•5 years ago
|
||
This was making the inspector destroy crash, if a target switch had occured before.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D60830
Comment 3•5 years ago
|
||
Tracking DevTools bugs for Fission Nightly (M6) milestone
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D60831
Adding a new trait in the previous changeset so let's remove this one.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D60964
Assignee | ||
Comment 6•5 years ago
|
||
This is often breaking target switching tests for the inspector. Depends on D62214
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D62216
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D62217
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D62218
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D62219
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D62220
Assignee | ||
Comment 12•5 years ago
|
||
Depends on D62221
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 13•5 years ago
|
||
Depends on D62216
Assignee | ||
Comment 14•5 years ago
|
||
Depends on D62229
Assignee | ||
Comment 15•5 years ago
|
||
Depends on D62230
Assignee | ||
Comment 16•5 years ago
|
||
Depends on D62216
Same as D62229, but instead of introducing a new event, this preserves the new-root mutation approach
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 17•5 years ago
|
||
Depends on D62229
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 18•5 years ago
|
||
Depends on D62576
Assignee | ||
Comment 19•5 years ago
|
||
Depends on D62616
Assignee | ||
Comment 20•5 years ago
|
||
This is often breaking target switching tests for the inspector
Depends on D62617
Assignee | ||
Comment 21•5 years ago
|
||
Depends on D62618
Assignee | ||
Comment 22•5 years ago
|
||
Depends on D62622
Assignee | ||
Comment 23•5 years ago
|
||
Depends on D62623
Assignee | ||
Comment 24•5 years ago
|
||
Depends on D62624
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 26•5 years ago
|
||
Depends on D62625
This is a WIP patch. It uses walker actor events directly instead of forwarding in the walker front.
It also simplifies the API around the RootNode exposed by the WalkerFront (mostly removing the internal rootNode promise)
Comment 28•5 years ago
|
||
Comment on attachment 9126165 [details]
Bug 1611096 - Remove leftover usage of this._target in inspector.js
Revision D62616 was moved to bug 1628691. Setting attachment 9126165 [details] to obsolete.
Comment 29•5 years ago
|
||
Comment on attachment 9126166 [details]
Bug 1611096 - Remove deprecated trait retrieveNodeFromContentDomReference (Fx71)
Revision D62617 was moved to bug 1628691. Setting attachment 9126166 [details] to obsolete.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 30•4 years ago
|
||
Depends on D62625
Assignee | ||
Comment 31•4 years ago
|
||
Depends on D62625
Alternative to D73969
Updated•4 years ago
|
Updated•4 years ago
|
Comment 32•4 years ago
|
||
Comment 33•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3703fbfe567a
https://hg.mozilla.org/mozilla-central/rev/a7242f506aa6
https://hg.mozilla.org/mozilla-central/rev/c86433fe8cd0
https://hg.mozilla.org/mozilla-central/rev/0fe3613ee36b
Comment 34•4 years ago
|
||
Backed out for dt failures on browser_animation_inspector_exists.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/bd777a58de7e9ee66da8b5fa3ee7a1f4921c63e8
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=301403561&repo=autoland&lineNumber=37513
Assignee | ||
Comment 35•4 years ago
|
||
I messed up the patch queue and missed a patch when landing...
Comment 36•4 years ago
|
||
Comment 37•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0ba3aba8133f
https://hg.mozilla.org/mozilla-central/rev/690cc322f8be
https://hg.mozilla.org/mozilla-central/rev/c67d4436a61e
https://hg.mozilla.org/mozilla-central/rev/cc9959150347
Description
•