B2G/gecko/browser/components/tabview/favicons.js
// Checks whether an image is loaded into the given tab.
Checks whether an image is loaded into the given tab.
Checks whether an image is loaded into the given tab .
function UI__isImageDocument(tab, callback) {
    let mm = tab.linkedBrowser.messageManager;
    let message = "Panorama:isImageDocument";
    mm.addMessageListener(message, function onMessage(cx) {
      mm.removeMessageListener(cx.name, onMessage);
      callback(cx.json.isImageDocument);
    });
    mm.sendAsyncMessage(message);
  }
function UI__isImageDocument ( tab , callback ) { let mm = tab . linkedBrowser . messageManager ; let message = "Panorama:isImageDocument" ; mm . addMessageListener ( message , function onMessage ( cx ) { mm . removeMessageListener ( cx . name , onMessage ) ; callback ( cx . json . isImageDocument ) ; } ) ; mm . sendAsyncMessage ( message ) ; }
Checks whether an image is loaded into the given tab.
Checks whether an image is loaded into the given tab .