Closed Bug 1660892 Opened 4 years ago Closed 4 years ago

Browser toolbox fails opening with "Permission denied to access property 'windowUtils' on cross-origin object" exception

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Fission Milestone:M6c, firefox82 fixed)

RESOLVED FIXED
82 Branch
Fission Milestone M6c
Tracking Status
firefox82 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The browser toolbox often fails opening with the following exception:
SecurityError: Permission denied to access property "windowUtils" on cross-origin object

It looks like this code:
https://searchfox.org/mozilla-beta/rev/52cc26c5eccd4f496ab8a8c73b529e4f0e23e4bd/devtools/server/actors/utils/event-loop.js#117-124

 this._thread.dbg.getDebuggees()

Sometimes also return window often for remote iframes.
These window objects are special and most property access will throw.
In addition to that, we should ignore these windows, as they will be debugged via another thread actor, running in the process of this remote iframe.

Assignee: nobody → poirot.alex
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d95edbd8386 Ignore window objects related to remote iframes in thread actor. r=nchevobbe

Oops, I thouht this failure was related to the next patch of this queue, which I explicitely avoided to land.

Let me see if I fixed this issue now:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=21418f9e2d725bc267c36a28b4940c3a2150c290

Flags: needinfo?(poirot.alex)
Fission Milestone: --- → M6c
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28f5c2767938 Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P3
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: