Closed Bug 898939 Opened 11 years ago Closed 11 years ago

"Assertion failure: !js::IsCrossCompartmentWrapper(obj)" adopting marquee

Categories

(Core :: XBL, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: assertion, testcase)

Attachments

(4 files)

Attached file testcase
Assertion failure: !js::IsCrossCompartmentWrapper(obj), at js/xpconnect/wrappers/XrayWrapper.cpp:1281
Attached file stack
Flags: needinfo?(bobbyholley+bmo)
I noticed this while making the crashtest here.

This was done before we flipped the default to make reftests always run with
dom.use_xbl_scopes_for_remote_xul=false (see reftest-cmdline.js). So to get
the full test coverage we're looking for here, we need to force the opposite
pref.
Attachment #782670 - Flags: review?(bzbarsky)
This is just an overzealous assertion, rather than a security issue. But Jesse's
testcase here has interesting implications - it runs XBL code that uses
setTimeout, and then adopts the bound node into another compartment, which
rejiggers its prototype chain to correspond to a new XBL scope. I think we
should handle this all well, but I want to give Boris a chance to brainstorm
potential issues before opening this bug up.
Attachment #782676 - Flags: review?(bzbarsky)
Comment on attachment 782670 [details] [diff] [review]
Bonus Fix - Flip custom scope automtion prefs for 449149-1{a,b}.html. v1

>automtion

automation.

r=me
Attachment #782670 - Flags: review?(bzbarsky) → review+
Comment on attachment 782676 [details] [diff] [review]
Loosen assertion. v1

r=me
Attachment #782676 - Flags: review?(bzbarsky) → review+
I think we agree at this point that this isn't a security issue.
Group: core-security
So, the reftest harness borks because it doesn't recognize the pref (which is in all.js). jgriffin says we could fix this by adding the pref to http://mxr.mozilla.org/mozilla-central/source/layout/tools/reftest/bootstrap.js, but it's probably easier to just disable the test on android.

https://hg.mozilla.org/integration/mozilla-inbound/rev/33c659c7b3b0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: