B2G/gecko/webapprt/test/chrome/head.js
/**
 * Load the webapp in the app browser.
 *
 * @param {String} manifestURL
 *        @see becomeWebapp
 * @param {Object} parameters
 *        @see becomeWebapp
 * @param {Function} onLoad
 *        The callback to call once the webapp is loaded.
 */
Load the webapp in the app browser.
Load the webapp in the app browser .
function loadWebapp(manifest, parameters, onLoad) {
  becomeWebapp(manifest, parameters, function onBecome() {
    function onLoadApp() {
      gAppBrowser.removeEventListener("load", onLoadApp, true);
      onLoad();
    }
    gAppBrowser.addEventListener("load", onLoadApp, true);
    gAppBrowser.setAttribute("src", WebappRT.launchURI.spec);
  });
}
function loadWebapp ( manifest , parameters , onLoad ) { becomeWebapp ( manifest , parameters , function onBecome ( ) { function onLoadApp ( ) { gAppBrowser . removeEventListener ( "load" , onLoadApp , true ) ; onLoad ( ) ; } gAppBrowser . addEventListener ( "load" , onLoadApp , true ) ; gAppBrowser . setAttribute ( "src" , WebappRT . launchURI . spec ) ; } ) ; }
Load the webapp in the app browser.
Load the webapp in the app browser .