Generate WebIDL bindings for JS-implemented interfaces against nsIGlobalObject rather than nsPIDOMWindow

RESOLVED FIXED in mozilla37

Status

()

defect
RESOLVED FIXED
5 years ago
5 months ago

People

(Reporter: mt, Assigned: bzbarsky)

Tracking

Trunk
mozilla37
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

WebIDL generated code can't be instantiated outside of a window context because it has a hard dependency on nsPIDOMWindow.  With bug 1117162, that should be less necessary and the code can instead depend on nsIGlobalObject.

There are a few places in Codegen.py that can be switched over easily, then there are several places in the rest of the tree that rely on calling the binding code directly with an nsPIDOMWindow.  The ones I've seen just need a simple substitution.
http://dxr.mozilla.org/mozilla-central/source/dom/bindings/Codegen.py#13547
Summary: Generate WebIDL bindings against nsIGlobalObject rather than nsPIDOMWindow → Generate WebIDL bindings for JS-implemented interfaces against nsIGlobalObject rather than nsPIDOMWindow
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Attachment #8543349 - Flags: review?(peterv) → review+
https://hg.mozilla.org/mozilla-central/rev/23ce8a6e826f
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.