Javascript source for the first-run wizard application update service. More...
Go to the source code of this file.
Functions | |
| if (!("Cc"in this)) this["Cc"] | |
| if (!("Ci"in this)) this["Ci"] | |
| if (!("Cr"in this)) this["Cr"] | |
| if (!("Cu"in this)) this["Cu"] | |
| Cu | import ("resource://gre/modules/XPCOMUtils.jsm") |
| XPCOMUtils | defineLazyServiceGetter (firstRunAppUpdate,"mUpdateService","@mozilla.org/updates/update-service;1","nsIApplicationUpdateService2") |
| XPCOMUtils | defineLazyGetter (firstRunAppUpdate,"mUpdateChecker", function(){return Cc["@mozilla.org/updates/update-checker;1"].createInstance(Ci.nsIUpdateChecker);}) |
| addEventListener ("load", function(aEvent){removeEventListener(aEvent.type, arguments.callee, false);firstRunAppUpdate.init();}, false) | |
Variables | |
| var | firstRunAppUpdate |
Javascript source for the first-run wizard application update service.
This is intended to trigger an application update check during the first run experience.
Definition in file firstRunAppUpdate.js.
| addEventListener | ( | "load" | , |
| function(aEvent){removeEventListener(aEvent.type, arguments.callee, false);firstRunAppUpdate.init();} | , | ||
| false | |||
| ) |
event listener to trigger initialization
| XPCOMUtils defineLazyGetter | ( | firstRunAppUpdate | , |
| "mUpdateChecker" | , | ||
| function(){return Cc["@mozilla.org/updates/update-checker;1"].createInstance(Ci.nsIUpdateChecker);} | |||
| ) |
| XPCOMUtils defineLazyServiceGetter | ( | firstRunAppUpdate | , |
| "mUpdateService" | , | ||
| "@mozilla.org/updates/update-service;1" | , | ||
| "nsIApplicationUpdateService2" | |||
| ) |
various lazy getters they should all be documented in the object above.
| if | ( | ! | "Cc"in this | ) |
| if | ( | ! | "Ci"in this | ) |
| if | ( | ! | "Cr"in this | ) |
| if | ( | ! | "Cu"in this | ) |
| Cu import | ( | "resource://gre/modules/XPCOMUtils.jsm" | ) |
| var firstRunAppUpdate |
Definition at line 63 of file firstRunAppUpdate.js.