B2G/gecko/testing/peptest/peptest/extension/chrome/content/quit.js
/*
From mozilla/toolkit/content
These files did not have a license
*/
From mozilla/toolkit/content
These files did not have a license
From mozilla / toolkit / content These files did not have a license
function canQuitApplication() {
  var os = Components.classes["@mozilla.org/observer-service;1"]
    .getService(Components.interfaces.nsIObserverService);
  if (!os) {
    return true;
  }
  try {
    var cancelQuit = Components.classes["@mozilla.org/supports-PRBool;1"]
      .createInstance(Components.interfaces.nsISupportsPRBool);
    os.notifyObservers(cancelQuit, "quit-application-requested", null);
    if (cancelQuit.data) {
      return false;
    }
  }
  catch (ex) {
  }
  return true;
}
function canQuitApplication ( ) { var os = Components . classes [ "@mozilla.org/observer-service;1" ] . getService ( Components . interfaces . nsIObserverService ) ; if ( ! os ) { return true ; } try { var cancelQuit = Components . classes [ "@mozilla.org/supports-PRBool;1" ] . createInstance ( Components . interfaces . nsISupportsPRBool ) ; os . notifyObservers ( cancelQuit , "quit-application-requested" , null ) ; if ( cancelQuit . data ) { return false ; } } catch ( ex ) { } return true ; }
From mozilla/toolkit/content
These files did not have a license
From mozilla / toolkit / content These files did not have a license
// Something aborted the quit process.