Skip to content
Permalink
Browse files

[e] (0) Try doing this a different way (MessageEvent.source exposure)

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22646
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8430 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jan 28, 2014
1 parent 05ca621 commit 9645a8407fd9b8f41dc6a19b7b8f8657685b3310
Showing with 30 additions and 6 deletions.
  1. +10 −2 complete.html
  2. +10 −2 index
  3. +10 −2 source
readonly attribute DOMString <a href=#dom-messageevent-origin title=dom-MessageEvent-origin>origin</a>;
readonly attribute DOMString <a href=#dom-messageevent-lasteventid title=dom-MessageEvent-lastEventId>lastEventId</a>;
readonly attribute DOMString <a href=#dom-messageevent-channel title=dom-MessageEvent-channel>channel</a>;
[Exposed=Window] readonly attribute (<a href=#windowproxy>WindowProxy</a> or <a href=#messageport>MessagePort</a>)? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
[Exposed=Worker] readonly attribute <a href=#messageport>MessagePort</a>? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
readonly attribute <a href=#messageport>MessagePort</a>[]? <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
};

[Exposed=Window]
partial interface <a href=#messageevent>MessageEvent</a> {
readonly attribute (<a href=#windowproxy>WindowProxy</a> or <a href=#messageport>MessagePort</a>)? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
}

[Exposed=Worker]
partial interface <a href=#messageevent>MessageEvent</a> {
readonly attribute <a href=#messageport>MessagePort</a>? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
}

dictionary <dfn id=messageeventinit>MessageEventInit</dfn> : <a href=#eventinit>EventInit</a> {
any data;
DOMString origin;
12 index
readonly attribute DOMString <a href=#dom-messageevent-origin title=dom-MessageEvent-origin>origin</a>;
readonly attribute DOMString <a href=#dom-messageevent-lasteventid title=dom-MessageEvent-lastEventId>lastEventId</a>;
readonly attribute DOMString <a href=#dom-messageevent-channel title=dom-MessageEvent-channel>channel</a>;
[Exposed=Window] readonly attribute (<a href=#windowproxy>WindowProxy</a> or <a href=#messageport>MessagePort</a>)? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
[Exposed=Worker] readonly attribute <a href=#messageport>MessagePort</a>? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
readonly attribute <a href=#messageport>MessagePort</a>[]? <a href=#dom-messageevent-ports title=dom-MessageEvent-ports>ports</a>;
};

[Exposed=Window]
partial interface <a href=#messageevent>MessageEvent</a> {
readonly attribute (<a href=#windowproxy>WindowProxy</a> or <a href=#messageport>MessagePort</a>)? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
}

[Exposed=Worker]
partial interface <a href=#messageevent>MessageEvent</a> {
readonly attribute <a href=#messageport>MessagePort</a>? <a href=#dom-messageevent-source title=dom-MessageEvent-source>source</a>;
}

dictionary <dfn id=messageeventinit>MessageEventInit</dfn> : <a href=#eventinit>EventInit</a> {
any data;
DOMString origin;
12 source
readonly attribute DOMString <span data-x="dom-MessageEvent-origin">origin</span>;
readonly attribute DOMString <span data-x="dom-MessageEvent-lastEventId">lastEventId</span>;
readonly attribute DOMString <span data-x="dom-MessageEvent-channel">channel</span>;
[Exposed=Window] readonly attribute (<span>WindowProxy</span> or <span>MessagePort</span>)? <span data-x="dom-MessageEvent-source">source</span>;
[Exposed=Worker] readonly attribute <span>MessagePort</span>? <span data-x="dom-MessageEvent-source">source</span>;
readonly attribute <span>MessagePort</span>[]? <span data-x="dom-MessageEvent-ports">ports</span>;
};

[Exposed=Window]
partial interface <span>MessageEvent</span> {
readonly attribute (<span>WindowProxy</span> or <span>MessagePort</span>)? <span data-x="dom-MessageEvent-source">source</span>;
}

[Exposed=Worker]
partial interface <span>MessageEvent</span> {
readonly attribute <span>MessagePort</span>? <span data-x="dom-MessageEvent-source">source</span>;
}

dictionary <dfn>MessageEventInit</dfn> : <span>EventInit</span> {
any data;
DOMString origin;

0 comments on commit 9645a84

Please sign in to comment.
You can’t perform that action at this time.