Bug 917254 - Only enable MessageEvent.ports when MessagePort is enabled; r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 17 Sep 2013 10:26:23 -0400
changeset 147477 7912be7f71db2f9306cf0a8bf0c6d25c6d77e3c7
parent 147476 4e3b6957add0e0f255781b3740d3779f7b31acb2
child 147478 924b0619e61614fe4bcf8fe95631079aa2ca6c5a
push id25306
push userryanvm@gmail.com
push dateWed, 18 Sep 2013 00:26:02 +0000
treeherdermozilla-central@d7d304e28da9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs917254
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 917254 - Only enable MessageEvent.ports when MessagePort is enabled; r=smaug
dom/webidl/MessageEvent.webidl
--- a/dom/webidl/MessageEvent.webidl
+++ b/dom/webidl/MessageEvent.webidl
@@ -36,16 +36,17 @@ interface MessageEvent : Event {
    */
   readonly attribute (WindowProxy or MessagePort)? source;
 
   /**
    * Initializes this event with the given data, in a manner analogous to
    * the similarly-named method on the nsIDOMEvent interface, also setting the
    * data, origin, source, and lastEventId attributes of this appropriately.
    */
+  [Pref="dom.messageChannel.enabled"]
   readonly attribute MessagePortList? ports;
 };
 
 dictionary MessageEventInit : EventInit {
   any data;
   DOMString origin;
   DOMString lastEventId;