Closed
Bug 1482090
Opened 7 years ago
Closed 7 years ago
Debugger API is always accessed via cross compartment wrappers
Categories
(DevTools :: Debugger, enhancement)
DevTools
Debugger
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 | ||
Updated•7 years ago
|
Assignee: nobody → poirot.alex
| Assignee | ||
Comment 1•7 years ago
|
||
MozReview-Commit-ID: LS6t5CFSVom
| Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8998817 -
Flags: review?(jdescottes)
| Assignee | ||
Comment 3•7 years ago
|
||
try run:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=ed1e74cfffb6ee215948d3f59cd19c64d7067cf7
DAMP:
https://treeherder.mozilla.org/perf.html#/comparesubtest?originalProject=try&originalRevision=a72dc99209ce1a57f5b5ab614fc0330e7a733b53&newProject=try&newRevision=ed1e74cfffb6ee215948d3f59cd19c64d7067cf7&originalSignature=f79b6a4f1f8f53326d3056f6c8008c0ff4de0a94&newSignature=f79b6a4f1f8f53326d3056f6c8008c0ff4de0a94&showOnlyConfident=1&framework=1
Comment 4•7 years ago
|
||
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+
Updated•7 years ago
|
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
Comment 6•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in
before you can comment on or make changes to this bug.
Description
•