B2G/gecko/browser/components/tabview/tabitems.js
// boolean indicates whether the tab is loaded or not.
boolean indicates whether the tab is loaded or not.
boolean indicates whether the tab is loaded or not .
function TabItems__isComplete(tab, callback) {
    Utils.assertThrow(tab, "tab");
    let mm = tab.linkedBrowser.messageManager;
    let message = "Panorama:isDocumentLoaded";
    mm.addMessageListener(message, function onMessage(cx) {
      mm.removeMessageListener(cx.name, onMessage);
      callback(cx.json.isLoaded);
    });
    mm.sendAsyncMessage(message);
  }
function TabItems__isComplete ( tab , callback ) { Utils . assertThrow ( tab , "tab" ) ; let mm = tab . linkedBrowser . messageManager ; let message = "Panorama:isDocumentLoaded" ; mm . addMessageListener ( message , function onMessage ( cx ) { mm . removeMessageListener ( cx . name , onMessage ) ; callback ( cx . json . isLoaded ) ; } ) ; mm . sendAsyncMessage ( message ) ; }
boolean indicates whether the tab is loaded or not.
boolean indicates whether the tab is loaded or not .