B2G/gecko/browser/components/tabview/favicons.js
// Retrieves the favicon for tab with a tab image.
Retrieves the favicon for tab with a tab image.
Retrieves the favicon for tab with a tab image .
function FavIcons_getFavIconFromTabImage(tab, callback) {
    let tabImage = tab.image;
    if (/^https?:/.test(tabImage)) {
      let tabImageURI = gWindow.makeURI(tabImage);
      tabImage = this._favIconService.getFaviconLinkForIcon(tabImageURI).spec;
    }
    callback(tabImage);
  }
function FavIcons_getFavIconFromTabImage ( tab , callback ) { let tabImage = tab . image ; if ( / ^https?: / . test ( tabImage ) ) { let tabImageURI = gWindow . makeURI ( tabImage ) ; tabImage = this . _favIconService . getFaviconLinkForIcon ( tabImageURI ) . spec ; } callback ( tabImage ) ; }
Retrieves the favicon for tab with a tab image.
Retrieves the favicon for tab with a tab image .
// If the tab image's url starts with http(s), fetch icon from favicon // service via the moz-anno protocol.