Closed Bug 1021244 Opened 10 years ago Closed 10 years ago

Switch the browser-element API to Cu.exportFunction

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

Gijs' patch in bug 1019643 unfortunately collided with Object Xrays during the merge, causing it to be backed out. The basic issue is that evt.detail is now a cloned content object, so we're not allowed to define cross-origin functions on it.

In the long term, if this API matures we'll probably want to use WebIDL. But for now, exportFunction lets us be safe without major code changes.
Comment on attachment 8435227 [details] [diff] [review]
Switch the browser-element API to Cu.exportFunction. v1

Review of attachment 8435227 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm
Attachment #8435227 - Flags: review?(amarchesini) → review+
Depends on: 1021312
https://hg.mozilla.org/mozilla-central/rev/06e276460c5b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: