Closed Bug 670205 Opened 15 years ago Closed 15 years ago

JSOPTION_UNROOTED_GLOBAL is lost in ContextHolder::ContextHolder

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: billm, Assigned: billm)

Details

Attachments

(1 file)

Attached patch fix — — 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)
This is great. I have been looking for this bug forever.
Attachment #544871 - Flags: review?(mrbkap) → review+
Whiteboard: [inbound]
Backed out of inbound because of build bustage.
Whiteboard: [inbound]
Whiteboard: [inbound]
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.

Attachment

General

Created:
Updated:
Size: