Bug 558673 - Implement Firefox TabBrowser API: getIcon(); (Av1) Just copy it from Firefox.
authorSerge Gautherie <sgautherie.bz@free.fr>
Sat, 19 Jun 2010 15:14:13 +0200
changeset 5852 650b6d05de958d9ca2b10e77f24d03d9fb1849e1
parent 5851 18235de07174fe0984c929101cbab85f1fe148b8
child 5853 eec16ea074ffd1c7d52ef08814a73885e6c50d3a
push id4534
push usersgautherie.bz@free.fr
push dateSat, 19 Jun 2010 13:19:17 +0000
treeherdercomm-central@650b6d05de95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs558673
Bug 558673 - Implement Firefox TabBrowser API: getIcon(); (Av1) Just copy it from Firefox. r=Callek.
suite/browser/tabbrowser.xml
--- a/suite/browser/tabbrowser.xml
+++ b/suite/browser/tabbrowser.xml
@@ -723,16 +723,26 @@
                 return this;
               throw Components.results.NS_NOINTERFACE;
             }
           });
         ]]>
         </body>
       </method>
 
+      <method name="getIcon">
+        <parameter name="aTab"/>
+        <body>
+          <![CDATA[
+            let browser = aTab ? this.getBrowserForTab(aTab) : this.selectedBrowser;
+            return browser.mIconURL;
+          ]]>
+        </body>
+      </method>
+
       <method name="buildFavIconString">
         <parameter name="aURI"/>
         <body>
           <![CDATA[
             try {
               aURI = this.mURIFixup.createExposableURI(aURI);
             } catch (e) {
             }