B2G/gecko/browser/components/tabview/favicons.js
// Retrieves the favicon for tab containg a http(s) document.
Retrieves the favicon for tab containg a http(s) document.
Retrieves the favicon for tab containg a http ( s ) document .
function FavIcons_getFavIconForHttpDocument(tab, callback) {
    let {currentURI} = tab.linkedBrowser;
    this._favIconService.getFaviconURLForPage(currentURI, function (uri) {
      if (uri) {
        callback(this._favIconService.getFaviconLinkForIcon(uri).spec);
      } else {
        callback(this.defaultFavicon);
      }
    }.bind(this));
  }
function FavIcons_getFavIconForHttpDocument ( tab , callback ) { let { currentURI } = tab . linkedBrowser ; this . _favIconService . getFaviconURLForPage ( currentURI , function ( uri ) { if ( uri ) { callback ( this . _favIconService . getFaviconLinkForIcon ( uri ) . spec ) ; } else { callback ( this . defaultFavicon ) ; } } . bind ( this ) ) ; }
Retrieves the favicon for tab containg a http(s) document.
Retrieves the favicon for tab containg a http ( s ) document .