Components.utils.getGlobalForObject should unwrap cross-compartment wrappers

RESOLVED FIXED in mozilla14

Status

()

Core
XPConnect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: bholley, Assigned: bholley)

Tracking

Trunk
mozilla14
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Wrappers are parented to their compartment's global, so we need to unwrap if we want to give callers what they expect. Patch coming right up.
Created attachment 606405 [details] [diff] [review]
Components.utils.getGlobalForObject should unwrap cross-compartment wrappers. v1

Attaching a patch. Flagging khuey for review because, well, I've already given a lot to Blake. ;-)
Attachment #606405 - Flags: review?(khuey)
Attachment #606405 - Flags: review?(khuey) → review+
Pushed this to try:

https://tbpl.mozilla.org/?tree=Try&rev=30b08591d306
Looks green - pushed to m-i: http://hg.mozilla.org/integration/mozilla-inbound/rev/3cbfbd2dad36

Updated

5 years ago
Assignee: nobody → bobbyholley+bmo
Target Milestone: --- → mozilla14
Version: unspecified → Trunk
https://hg.mozilla.org/mozilla-central/rev/3cbfbd2dad36
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Duplicate of this bug: 613315
You need to log in before you can comment on or make changes to this bug.