2 let quitRequestObserver = {
4 ok(aTopic ==
"quit-application-requested" &&
5 aSubject instanceof Components.interfaces.nsISupportsPRBool,
6 "Received a quit request we're going to deny");
12 let
os = Components.classes[
"@mozilla.org/observer-service;1"]
13 .getService(Components.interfaces.nsIObserverService);
14 os.addObserver(quitRequestObserver,
"quit-application-requested",
false);
16 ok(!
Application.quit(),
"Tried to quit - and didn't succeed");
17 ok(!
Application.restart(),
"Tried to restart - and didn't succeed");
20 os.removeObserver(quitRequestObserver,
"quit-application-requested",
false);
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe