apps/system/js/task_manager.js
/**
   * Launch a new browser sheet at the end of the stack, pan to its position,
   * and exit into the new sheet.
   */
Launch a new browser sheet at the end of the stack, pan to its position,
and exit into the new sheet.
Launch a new browser sheet at the end of the stack pan to its position and exit into the new sheet .
openNewSheet({ isPrivate } = {}) {
    var config;
    if (isPrivate) {
      config = new BrowserConfigHelper({
        manifestURL: 'app://search.gaiamobile.org/manifest.webapp',
        url: 'app://search.gaiamobile.org/newtab.html?private=1',
      });
      config.isPrivate = true;
      config.isMockPrivate = true;
      config.oop = true;
    } else {
      config = new BrowserConfigHelper({
        manifestURL: 'app://search.gaiamobile.org/manifest.webapp',
        url: 'app://search.gaiamobile.org/newtab.html?private=0'
      });
    }
    var appWindow = new AppWindow(config);
    this.updateStack({ currentlyLaunchingApp: appWindow });
    this.panToApp(appWindow);
    this.hide(appWindow, 'from-new-card');
  }
openNewSheet ( { isPrivate } = { } ) { var config ; if ( isPrivate ) { config = new BrowserConfigHelper ( { manifestURL : 'app://search.gaiamobile.org/manifest.webapp' , url : 'app://search.gaiamobile.org/newtab.html?private=1' , } ) ; config . isPrivate = true ; config . isMockPrivate = true ; config . oop = true ; } else { config = new BrowserConfigHelper ( { manifestURL : 'app://search.gaiamobile.org/manifest.webapp' , url : 'app://search.gaiamobile.org/newtab.html?private=0' } ) ; } var appWindow = new AppWindow ( config ) ; this . updateStack ( { currentlyLaunchingApp : appWindow } ) ; this . panToApp ( appWindow ) ; this . hide ( appWindow , 'from-new-card' ) ; }
Launch a new browser sheet at the end of the stack, pan to its position,
 and exit into the new sheet.
Launch a new browser sheet at the end of the stack pan to its position and exit into the new sheet .
// NOTE: These two actions (panToApp and hide) are triggered simultaneously, // to attempt to give the appWindow some time to load before animating // onscreen. The 'from-new-card' transition includes a bit of dead time // at the beginning of the animation to allow 'panToApp' to complete.