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)
Tracking
()
NEW
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.
Comment 1•6 years ago
|
||
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
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•