Closed Bug 731804 Opened 13 years ago Closed 13 years ago

nsXPCWrappedJSClass::GetNamedPropertyAsVariant should jsvalify strings _after_ changing compartments

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

I'm guessing this wasn't an issue before because we only hit this stuff for chrome, and chrome was always one compartment. But I'm getting a compartment mismatch with compartment-per-global. Patch coming right up.
Attaching a patch. Flagging peterv for review.
Attachment #601776 - Flags: review?(peterv)
(FWIW, I considered just doing JS_WrapValue here, but we can pretty easily avoid the cross-compartment wrapper if we're careful).
Attachment #601776 - Flags: review?(peterv) → review+
Linux and Android look green, and everything at least made it past the build phase. Pushed to m-i: http://hg.mozilla.org/integration/mozilla-inbound/rev/d4433c487dc8
Target Milestone: --- → mozilla13
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: