Closed Bug 1723958 Opened 3 years ago Closed 3 years ago

DevTools broken after using iframe picker with bfcache navigation

Categories

(DevTools :: Framework, defect, P3)

defect

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

Markup view will be blank, console doesn't work, etc... The following error is visible in the logs:

JavaScript error: resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm, line 247: Error: DevToolsFrameChild _createTargetActor was called more than once for the same Watcher (Actor ID: "server0.conn1.watcher2")
Summary: Iframe picker does not work after bfcache navigation → DevTools broken after using iframe picker with bfcache navigation

I can reproduce on my machine (Win10), my prefs are:

  • fission.autostart => true
  • devtools.target-switching.server.enabled => true
  • fission.bfcacheInParent => true

I created a test that demonstrates the issue: https://phabricator.services.mozilla.com/D121727
It runs fine without fission, fails with fission + bfcache, and passes with fission enabled but bfcache disabled.
So we can say it is related to bfcache

Assignee: nobody → nchevobbe
Attachment #9234674 - Attachment description: WIP: Bug 1723958 - [devtools] Add test for iframe picker + inspector + bfcache → Bug 1723958 - [devtools] Use targetActor.originalWindow instead of window in bfcache navigation. r=jdescottes.
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3a3f6075172e
[devtools] Use targetActor.originalWindow instead of window in bfcache navigation. r=jdescottes.

Backed out changeset 3a3f6075172e (Bug 1723958) for causing xpcshell failures on test_addon_debugging_connect.js.
Backout link
Push with failures
Failure Log

Flags: needinfo?(nchevobbe)
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bba88f3be2ff
[devtools] Use targetActor.originalWindow instead of window in bfcache navigation. r=jdescottes.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: