--- a/mobile/android/components/BrowserCLH.js
+++ b/mobile/android/components/BrowserCLH.js
@@ -88,17 +88,21 @@ BrowserCLH.prototype = {
} else {
let args = {
url: openURL,
width: width,
height: height,
};
let flags = "chrome,dialog=no,all";
- browserWin = openWindow(null, "chrome://browser/content/browser.xul", "_blank", flags, args);
+ let chromeURL = "chrome://browser/content/browser.xul";
+ try {
+ chromeURL = Services.prefs.getCharPref("toolkit.defaultChromeURI");
+ } catch(e) {}
+ browserWin = openWindow(null, chromeURL, "_blank", flags, args);
}
aCmdLine.preventDefault = true;
} catch (x) {
dump("BrowserCLH.handle: " + x);
}
},
--- a/xpcom/threads/moz.build
+++ b/xpcom/threads/moz.build
@@ -56,16 +56,17 @@ LOCAL_INCLUDES += [
'../build',
'/caps',
'/toolkit/crashreporter/google-breakpad/src',
'/tools/profiler',
]
# BHR disabled for Release builds because of bug 965392.
# BHR disabled for debug builds because of bug 979069.
-if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release') and not CONFIG['MOZ_DEBUG']:
+# BHR disabled on gonk because of bug 1180533
+if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release') and not CONFIG['MOZ_DEBUG'] and not CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
DEFINES['MOZ_ENABLE_BACKGROUND_HANG_MONITOR'] = 1
FAIL_ON_WARNINGS = True
FINAL_LIBRARY = 'xul'
include('/ipc/chromium/chromium-config.mozbuild')