From 9d7113226d2ec37c86036cf5e6a7807baf244bef Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Tue, 25 Oct 2011 13:29:30 +0100 Subject: [PATCH] Bug 696820 - Fix typo'd MOZ_CRASHREPORTER ifdefs; r=ted --- browser/components/sessionstore/src/nsSessionStore.js | 4 ++-- mobile/chrome/content/browser.js | 5 +++-- mobile/components/SessionStore.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 441220b424dd..21fd9b49ae4b 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -143,7 +143,7 @@ XPCOMUtils.defineLazyGetter(this, "NetUtil", function() { XPCOMUtils.defineLazyServiceGetter(this, "CookieSvc", "@mozilla.org/cookiemanager;1", "nsICookieManager2"); -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter", "@mozilla.org/xre/app-info;1", "nsICrashReporter"); #endif @@ -3796,7 +3796,7 @@ SessionStoreService.prototype = { * Annotate a breakpad crash report with the currently selected tab's URL. */ _updateCrashReportURL: function sss_updateCrashReportURL(aWindow) { -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER try { var currentURI = aWindow.gBrowser.currentURI.clone(); // if the current URI contains a username/password, remove it diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index d19be73d9f28..396727d68e19 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -69,7 +69,8 @@ window.sizeToContent = function() { Cu.reportError("window.sizeToContent is not allowed in this window"); } -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER +Cu.import("resource://gre/modules/XPCOMUtils.jsm"); XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter", "@mozilla.org/xre/app-info;1", "nsICrashReporter"); #endif @@ -1618,7 +1619,7 @@ Browser.WebProgress.prototype = { tab.browser.userTypedValue = ""; tab.browser.appIcon = { href: null, size:-1 }; -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER if (CrashReporter.enabled) CrashReporter.annotateCrashReport("URL", spec); #endif diff --git a/mobile/components/SessionStore.js b/mobile/components/SessionStore.js index a2627805a4a4..0d9c74386667 100644 --- a/mobile/components/SessionStore.js +++ b/mobile/components/SessionStore.js @@ -42,7 +42,7 @@ const Cr = Components.results; Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/Services.jsm"); -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter", "@mozilla.org/xre/app-info;1", "nsICrashReporter"); #endif @@ -578,7 +578,7 @@ SessionStore.prototype = { }, _updateCrashReportURL: function ss_updateCrashReportURL(aWindow) { -#ifdef MOZ_CRASH_REPORTER +#ifdef MOZ_CRASHREPORTER try { let currentURI = aWindow.Browser.selectedBrowser.currentURI.clone(); // if the current URI contains a username/password, remove it