Ensure replay.js module is in its own compartment
Categories
(Core Graveyard :: Web Replay, task, P5)
Tracking
(firefox67 affected)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | affected |
People
(Reporter: bhackett1024, Assigned: bhackett1024)
Details
Attachments
(1 file)
|
720 bytes,
patch
|
loganfsmyth
:
review+
|
Details | Diff | Splinter Review |
The replay.js module is loaded in the same compartment as other system code, which prevents it from being able to debug that code. While this isn't a problem with how things are currently used, it prints out a scary error message:
JavaScript error: resource://devtools/server/actors/replay/replay.js, line 45: TypeError: debugger and debuggee must be in different compartments
For now it would be good to avoid printing this error, but this will need to get fixed properly in order to be able to debug system code.
| Assignee | ||
Comment 1•7 years ago
|
||
Catch and ignore errors related to adding same-compartment debuggees.
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Logan Smyth [:loganfsmyth] from comment #2)
Comment on attachment 9039909 [details] [diff] [review]
ignore errorReview of attachment 9039909 [details] [diff] [review]:
::: devtools/server/actors/replay/replay.js
@@ +45,5 @@
- dbg.addDebuggee(global);
- } catch (e) {
- // Ignore errors related to adding a same-compartment debuggee.
- // See bug 1523755.
- if (!/debugger and debuggee must be in different compartments/.test("" + e)) {
Are these messages localized at all? Do we have to worry about different
error strings in that context?
This is a spidermonkey error (JSMSG_DEBUG_SAME_COMPARTMENT) which I don't think is localized anywhere.
Comment 5•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Description
•