MarkupView broken with BFCache navigation
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(firefox94 fixed)
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: Honza, Assigned: bomsy)
References
Details
(Whiteboard: dt-perf-stability-mvp)
Attachments
(2 files)
STR:
Prefs set to true:
fission.autostart
devtools.browsertoolbox.fission
devtools.target-switching.server.enabled
fission.bfcacheInParent
- Load http://janodvarko.cz/tests/fission/case1/index.html
- Open DevTools select the Inspector panel
- Load google.com (or any other page)
- Go back in history (press the Back button)
- Right click on the IFrame and execute "This Frame -> Reload Frame"
- The Markup View in the Inspector panel goes blank -> BUG
ER: The Markup view should work as expected
It works when fission.bfcacheInParent
is false
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
ni? to add proper meta or keyword for fission cleanups
Comment 3•3 years ago
•
|
||
This issue highlight some race condition in TargetCommand where, in case of bfcache navigation, we sometime receive the iframe target before the top level one.
Because of this, we receive the iframe target first, add it to the cache, notify it to the panel.
But then, when we receive the top document, we destroy the iframe target because of this code:
https://searchfox.org/mozilla-central/rev/9dceacf3d761eb91237108ec438d64099a56f442/devtools/shared/commands/target/target-command.js#168
We probably have to workaround the fact that the platform code doesn't fire pageshow event in DevToolsFrameChild in the best order for us.
https://searchfox.org/mozilla-central/rev/9dceacf3d761eb91237108ec438d64099a56f442/devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm#616
Sounds like something we should fix sooner than later, but given that it is specific to bfcache and iframes, it doesn't justify backing out SSTS, nor delaying M3.
It is yet another edgecase related to bfcache navigations.
Reporter | ||
Comment 4•3 years ago
|
||
Not blocking Fission M3, but should be triaged for "Performance & Stability" project.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
bugherder |
Description
•