Bug 1190344 - Add outerWindowID read-only property to editor binding. r=ehsan
authorMike Conley <mconley@mozilla.com>
Tue, 04 Aug 2015 13:04:31 -0400
changeset 287842 402f6265001b844eef9c3dde4abdb331c99e5fb9
parent 287841 7c820913dff608ce1a968d54b4191a4297613474
child 287843 d70f26619ecab349024eec4f743d825d37dcb7e2
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1190344
milestone42.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 1190344 - Add outerWindowID read-only property to editor binding. r=ehsan
toolkit/content/widgets/editor.xml
--- a/toolkit/content/widgets/editor.xml
+++ b/toolkit/content/widgets/editor.xml
@@ -177,12 +177,20 @@
             var owner = this.QueryInterface(Components.interfaces.nsIFrameLoaderOwner);
             if (!owner.frameLoader) {
               return null;
             }
             return owner.frameLoader.messageManager;
           ]]>
         </getter>
       </property>
+      <property name="outerWindowID" readonly="true">
+        <getter><![CDATA[
+          return this.contentWindow
+                     .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
+                     .getInterface(Components.interfaces.nsIDOMWindowUtils)
+                     .outerWindowID;
+        ]]></getter>
+      </property>
     </implementation>
   </binding>
 
 </bindings>