B2G/gecko/browser/components/nsBrowserGlue.js
/**
   * Places shut-down tasks
   * - back up bookmarks if needed.
   * - export bookmarks as HTML, if so configured.
   *
   * Note: quit-application-granted notification is received twice
   *       so replace this method with a no-op when first called.
   */
Places shut-down tasks
- back up bookmarks if needed.
- export bookmarks as HTML, if so configured.

quit-application-granted notification is received twice
so replace this method with a no-op when first called.
Places shut - down tasks - back up bookmarks if needed . - export bookmarks as HTML if so configured . quit - application - granted notification is received twice so replace this method with a no - op when first called .
function BG__shutdownPlaces() {
    if (this._isIdleObserver) {
      this._idleService.removeIdleObserver(this, BOOKMARKS_BACKUP_IDLE_TIME);
      this._isIdleObserver = false;
    }
    this._backupBookmarks();
    var autoExportHTML = false;
    try {
      autoExportHTML = Services.prefs.getBoolPref("browser.bookmarks.autoExportHTML");
    } catch(ex) {  }
    if (autoExportHTML) {
      Cc["@mozilla.org/browser/places/import-export-service;1"].
        getService(Ci.nsIPlacesImportExportService).
        backupBookmarksFile();
    }
  }
function BG__shutdownPlaces ( ) { if ( this . _isIdleObserver ) { this . _idleService . removeIdleObserver ( this , BOOKMARKS_BACKUP_IDLE_TIME ) ; this . _isIdleObserver = false ; } this . _backupBookmarks ( ) ; var autoExportHTML = false ; try { autoExportHTML = Services . prefs . getBoolPref ( "browser.bookmarks.autoExportHTML" ) ; } catch ( ex ) { } if ( autoExportHTML ) { Cc [ "@mozilla.org/browser/places/import-export-service;1" ] . getService ( Ci . nsIPlacesImportExportService ) . backupBookmarksFile ( ) ; } }
Places shut-down tasks
 - back up bookmarks if needed.
Places shut - down tasks - back up bookmarks if needed .
// Backup bookmarks to bookmarks.html to support apps that depend // on the legacy format. /* Don't export */