Open Bug 976307 Opened 11 years ago Updated 2 years ago

ES objects created by WebIDL bindings should be created in the compartment of the callee

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
macOS
defect

Tracking

()

People

(Reporter: bholley, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Unless otherwise specified, ES objects returned by functions are supposed to be created in the scope of the function's global. This is observably different from what we do in the Xray case, where we generally create ES objects in the compartment of the cx/caller. One major reason for the current behavior is that we don't have meaningful Xrays to JS objects, so if we returned callee-side objects, Xraying callers would be stuck with returned objects that they couldn't safely view. The hope is that the JS Xray machinery tracked in bug 914970 will get us to a point where we can do this. Pure Objects (i.e. Dictionaries) will be a stickler, but hopefully we can get there.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.