B2G/gecko/browser/components/tabview/favicons.js
// Checks whether fav icon should be loaded for a given tab.
Checks whether fav icon should be loaded for a given tab.
Checks whether fav icon should be loaded for a given tab .
function FavIcons_shouldLoadFavIcon(tab) {
    if (!this._prefSiteIcons || !this._prefFavicons)
      return false;
    let uri = tab.linkedBrowser.currentURI;
    if (!uri || !(uri instanceof Ci.nsIURI))
      return false;
    return uri.schemeIs("http") || uri.schemeIs("https");
  }
function FavIcons_shouldLoadFavIcon ( tab ) { if ( ! this . _prefSiteIcons || ! this . _prefFavicons ) return false ; let uri = tab . linkedBrowser . currentURI ; if ( ! uri || ! ( uri instanceof Ci . nsIURI ) ) return false ; return uri . schemeIs ( "http" ) || uri . schemeIs ( "https" ) ; }
Checks whether fav icon should be loaded for a given tab.
Checks whether fav icon should be loaded for a given tab .
// No need to load a favicon if the user doesn't want site or favicons. // Stop here if we don't have a valid nsIURI. // Load favicons for http(s) pages only.