Closed Bug 2026134 Opened 6 months ago Closed 6 months ago

Check if window is remote proxy in various devtools call sites

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

To reduce the number of Permission denied to access property "document" on cross-origin object, let's fix the most frequent call sites.

Flags: needinfo?(jdescottes)
Flags: needinfo?(jdescottes)

I see 2 stacktraces:

120 occurrences:
listen@resource://devtools/server/actors/webconsole/listeners/document-events.js:66:11
watch@resource://devtools/server/actors/resources/document-event.js:114:19
watchResources@resource://devtools/server/actors/resources/index.js:371:15
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/session-data-processors/resources.js:19:21
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/base-target-actor.js:87:23

11 occurrences:
watch@resource://devtools/server/actors/resources/console-messages.js:93:7
watchResources@resource://devtools/server/actors/resources/index.js:371:15
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/session-data-processors/resources.js:19:21
addOrSetSessionDataEntry@resource://devtools/server/actors/targets/base-target-actor.js:87:23
#addOrSetSessionDataEntry@resource://devtools/server/connectors/js-process-actor/DevToolsProcessChild.sys.mjs:398:21

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/50174b11a09b https://hg.mozilla.org/integration/autoland/rev/cf2ac7444014 [devtools] Add guards for frequent security errors in devtools actors r=devtools-reviewers,ochameau
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/45295636243f https://hg.mozilla.org/integration/autoland/rev/26c1109ae138 Revert "Bug 2026134 - [devtools] Add guards for frequent security errors in devtools actors r=devtools-reviewers,ochameau" for causing failures at BrowserToolboxDevToolsProcess.

Thanks for the ping. Cu is not available in xpcshell tests, need to guard the guard.

Flags: needinfo?(jdescottes)
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/eaa6c1dbe4a4 https://hg.mozilla.org/integration/autoland/rev/09d89cf9e7dd [devtools] Add guards for frequent security errors in devtools actors r=devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Blocks: 2030655
QA Whiteboard: [qa-triage-done-c152/b151]
See Also: → 2041223
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: