Bug 1151585 - Use AppConstants in browser-child.js (r=felipe)

This commit is contained in:
Bill McCloskey 2015-04-03 07:51:00 -07:00
Родитель 33f2902e26
Коммит d283d0b0a7
2 изменённых файлов: 8 добавлений и 9 удалений

Просмотреть файл

@ -6,6 +6,7 @@ let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;
Cu.import("resource://gre/modules/AppConstants.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
Cu.import("resource://gre/modules/RemoteAddonsChild.jsm");
@ -14,11 +15,11 @@ Cu.import("resource://gre/modules/Timer.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "PageThumbUtils",
"resource://gre/modules/PageThumbUtils.jsm");
#ifdef MOZ_CRASHREPORTER
XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter",
"@mozilla.org/xre/app-info;1",
"nsICrashReporter");
#endif
if (AppConstants.MOZ_CRASHREPORTER) {
XPCOMUtils.defineLazyServiceGetter(this, "CrashReporter",
"@mozilla.org/xre/app-info;1",
"nsICrashReporter");
}
let FocusSyncHandler = {
init: function() {
@ -256,10 +257,8 @@ let WebNavigation = {
},
loadURI: function(uri, flags, referrer, referrerPolicy, baseURI) {
#ifdef MOZ_CRASHREPORTER
if (CrashReporter.enabled)
if (AppConstants.MOZ_CRASHREPORTER && CrashReporter.enabled)
CrashReporter.annotateCrashReport("URL", uri);
#endif
if (referrer)
referrer = Services.io.newURI(referrer, null, null);
if (baseURI)

Просмотреть файл

@ -31,7 +31,7 @@ toolkit.jar:
content/global/directionDetector.html
content/global/plugins.html
content/global/plugins.css
* content/global/browser-child.js (browser-child.js)
content/global/browser-child.js (browser-child.js)
content/global/browser-content.js (browser-content.js)
*+ content/global/buildconfig.html (buildconfig.html)
* content/global/contentAreaUtils.js (contentAreaUtils.js)