Bug 1143623: add an outerWindowID property to the browser binding to make tab-sharing Loop work. r=Standard8, a=Sylvestre
authorMike de Boer <mdeboer@mozilla.com>
Mon, 16 Mar 2015 11:23:06 +0100
changeset 248108 12a35ce9fdf1a1c269460803b4caee7236cd77a4
parent 248107 bfc727710e8629b3e287683bfe6cb9abae5c28e1
child 248109 b0ce72fae36018dee00e1b84f138b1a9a1e2e0b2
push id7762
push usermdeboer@mozilla.com
push dateMon, 16 Mar 2015 15:07:09 +0000
treeherdermozilla-aurora@9b59f3a2743d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8, Sylvestre
bugs1143623
milestone38.0a2
Bug 1143623: add an outerWindowID property to the browser binding to make tab-sharing Loop work. r=Standard8, a=Sylvestre
toolkit/content/widgets/browser.xml
--- a/toolkit/content/widgets/browser.xml
+++ b/toolkit/content/widgets/browser.xml
@@ -387,16 +387,25 @@
       </property>
 
       <field name="_permanentKey">({})</field>
 
       <property name="permanentKey"
                 onget="return this._permanentKey;"
                 onset="this._permanentKey = val;"/>
 
+      <property name="outerWindowID" readonly="true">
+        <getter><![CDATA[
+          return this.contentWindow
+                     .QueryInterface(Components.interfaces.nsIInterfaceRequestor)
+                     .getInterface(Components.interfaces.nsIDOMWindowUtils)
+                     .outerWindowID;
+        ]]></getter>
+      </property>
+
       <field name="_lastSearchString">null</field>
       <field name="_lastSearchHighlight">false</field>
 
       <property name="webProgress"
                 readonly="true"
                 onget="return this.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);"/>
 
       <field name="_contentWindow">null</field>