B2G/gecko/browser/components/nsBrowserGlue.js
// profile startup handler (contains profile initialization routines)
profile startup handler (contains profile initialization routines)
profile startup handler ( contains profile initialization routines )
function BG__onProfileStartup() {
    this._sanitizer.onStartup();
    if (Services.appinfo.inSafeMode) {
      Services.ww.openWindow(null, "chrome://browser/content/safeMode.xul", 
                             "_blank", "chrome,centerscreen,modal,resizable=no", null);
    }
    this._distributionCustomizer.applyCustomizations();
    this._migrateUI();
    this._setUpUserAgentOverrides();
    webappsUI.init();
    PageThumbs.init();
    NewTabUtils.init();
    BrowserNewTabPreloader.init();
    SignInToWebsiteUX.init();
    PdfJs.init();
    webrtcUI.init();
    Services.obs.notifyObservers(null, "browser-ui-startup-complete", "");
  }
function BG__onProfileStartup ( ) { this . _sanitizer . onStartup ( ) ; if ( Services . appinfo . inSafeMode ) { Services . ww . openWindow ( null , "chrome://browser/content/safeMode.xul" , "_blank" , "chrome,centerscreen,modal,resizable=no" , null ) ; } this . _distributionCustomizer . applyCustomizations ( ) ; this . _migrateUI ( ) ; this . _setUpUserAgentOverrides ( ) ; webappsUI . init ( ) ; PageThumbs . init ( ) ; NewTabUtils . init ( ) ; BrowserNewTabPreloader . init ( ) ; SignInToWebsiteUX . init ( ) ; PdfJs . init ( ) ; webrtcUI . init ( ) ; Services . obs . notifyObservers ( null , "browser-ui-startup-complete" , "" ) ; }
profile startup handler (contains profile initialization routines)
profile startup handler ( contains profile initialization routines )
// check if we're in safe mode // apply distribution customizations // prefs are applied in _onAppDefaults() // handle any UI migration