Bug 1387249: If the add-on is installed at runtime don't wait for browser startup notifications. r?rexboy
MozReview-Commit-ID: 1O1YD30gJbj
--- a/browser/extensions/onboarding/bootstrap.js
+++ b/browser/extensions/onboarding/bootstrap.js
@@ -191,17 +191,17 @@ function observe(subject, topic, data) {
}
function install(aData, aReason) {}
function uninstall(aData, aReason) {}
function startup(aData, aReason) {
// Only start Onboarding when the browser UI is ready
- if (aReason === APP_STARTUP || aReason === ADDON_INSTALL) {
+ if (Services.startup.startingUp) {
Services.obs.addObserver(observe, BROWSER_READY_NOTIFICATION);
Services.obs.addObserver(observe, BROWSER_SESSION_STORE_NOTIFICATION);
} else {
onBrowserReady();
syncTourChecker.init();
}
}