diff options
author | Pale Moon <git-repo@palemoon.org> | 2015-02-01 15:44:21 +0100 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2015-02-01 15:44:21 +0100 |
commit | f7489c35f24b4ce10f9645b5edc3e97a6e0017b3 (patch) | |
tree | d2c04877360a2962ed2ec42c6bf4b781ef1b29a0 /browser/components/sessionstore | |
parent | 811d05df9f7b7f520a96a719dcfc24244b8b204e (diff) | |
download | palemoon-gre-f7489c35f24b4ce10f9645b5edc3e97a6e0017b3.tar.gz |
Remove conditional crash reporter code
Diffstat (limited to 'browser/components/sessionstore')
-rw-r--r-- | browser/components/sessionstore/src/SessionStore.jsm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/browser/components/sessionstore/src/SessionStore.jsm b/browser/components/sessionstore/src/SessionStore.jsm index 075b825cd..babc4489d 100644 --- a/browser/components/sessionstore/src/SessionStore.jsm +++ b/browser/components/sessionstore/src/SessionStore.jsm @@ -118,11 +118,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "SessionStorage", XPCOMUtils.defineLazyModuleGetter(this, "_SessionFile", "resource:///modules/sessionstore/_SessionFile.jsm"); -#ifdef MOZ_CRASHREPORTER -XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter", - "@mozilla.org/xre/app-info;1", "nsICrashReporter"); -#endif - function debug(aMsg) { aMsg = ("SessionStore: " + aMsg).replace(/\S{80}/g, "$&\n"); Services.console.logStringMessage(aMsg); @@ -4002,23 +3997,6 @@ let SessionStoreInternal = { * Annotate a breakpad crash report with the currently selected tab's URL. */ _updateCrashReportURL: function ssi_updateCrashReportURL(aWindow) { -#ifdef MOZ_CRASHREPORTER - try { - var currentURI = aWindow.gBrowser.currentURI.clone(); - // if the current URI contains a username/password, remove it - try { - currentURI.userPass = ""; - } - catch (ex) { } // ignore failures on about: URIs - - CrashReporter.annotateCrashReport("URL", currentURI.spec); - } - catch (ex) { - // don't make noise when crashreporter is built but not enabled - if (ex.result != Components.results.NS_ERROR_NOT_INITIALIZED) - debug(ex); - } -#endif }, /** |