Closed
Bug 670205
Opened 15 years ago
Closed 15 years ago
JSOPTION_UNROOTED_GLOBAL is lost in ContextHolder::ContextHolder
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: billm, Assigned: billm)
Details
Attachments
(1 file)
|
859 bytes,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
Copying this from bug 585221...
I'm getting an assertion here:
void XPCJSRuntime::TraceXPConnectRoots(JSTracer *trc)
{ ...
JS_ASSERT(acx->hasRunOption(JSOPTION_UNROOTED_GLOBAL));
}
The place where the option gets unset is here:
ContextHolder::ContextHolder(JSContext *aOuterCx, JSObject *aSandbox)
{ ...
JS_SetOptions(mJSContext,
JSOPTION_DONT_REPORT_UNCAUGHT |
JSOPTION_PRIVATE_IS_NSISUPPORTS);
}
I made a patch that ORs in the existing options (which currently are just the unrooted global option).
Attachment #544871 -
Flags: review?(mrbkap)
Comment 1•15 years ago
|
||
This is great. I have been looking for this bug forever.
Updated•15 years ago
|
Attachment #544871 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [inbound]
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [inbound]
Comment 3•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
Pushed by clegnitto@mozilla.com:
https://hg.mozilla.org/releases/mozilla-release/rev/7df23b0d64d9
Maintain JSOPTION_UNROOTED_GLOBAL in ContextHolder::ContextHolder (r=gal)
https://hg.mozilla.org/releases/mozilla-release/rev/e3ae6cf9af13
Backout and bug 673451 because of build bustage
You need to log in
before you can comment on or make changes to this bug.
Description
•