Closed Bug 1482090 Opened 7 years ago Closed 7 years ago

Debugger API is always accessed via cross compartment wrappers

Categories

(DevTools :: Debugger, enhancement)

enhancement
Not set
normal

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

While looking at profiles from bug 1479813, I realized that Debugger API is always accessed via a cross compartment wrapper. I don't know yet if it is because of this code: https://searchfox.org/mozilla-central/source/devtools/shared/builtin-modules.js#223-234 Or this one: https://searchfox.org/mozilla-central/source/js/ductwork/debugger/jsdebugger.jsm#22-25 But we should ensure that the Debugger is rooted to the same global than the modules use. That, to prevent having cross compartment wrapper when calling any API from Debugger object. When I fix that, DAMP report substantial speedups around the debugger: https://treeherder.mozilla.org/perf.html#/comparesubtest?originalProject=try&originalRevision=a72dc99209ce1a57f5b5ab614fc0330e7a733b53&newProject=try&newRevision=bcda5bbee34b6875ba7134cc957255f9d4a6b5d6&originalSignature=f79b6a4f1f8f53326d3056f6c8008c0ff4de0a94&newSignature=f79b6a4f1f8f53326d3056f6c8008c0ff4de0a94&showOnlyConfident=1&framework=1
Assignee: nobody → poirot.alex
Attached file D3006 (obsolete) —
Attachment #8998817 - Flags: review?(jdescottes)
Comment on attachment 8998816 [details] Bug 1482090 - Instanciate Debugger API in the same global as DevTools modules. r=jdescottes Julian Descottes [:jdescottes][:julian] has approved the revision.
Attachment #8998816 - Flags: review+
Attachment #8998817 - Attachment is obsolete: true
Attachment #8998817 - Flags: review?(jdescottes)
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b7941dfa029a Instanciate Debugger API in the same global as DevTools modules. r=jdescottes
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: