Bug 663038. Set some preferences for e10s builds. r=dolske

This commit is contained in:
Felipe Gomes 2011-06-22 13:43:09 -07:00
parent b0be6a9593
commit 7248b093ca
3 changed files with 17 additions and 0 deletions

View File

@ -899,6 +899,10 @@ pref("dom.ipc.plugins.enabled.x86_64", true);
pref("dom.ipc.plugins.enabled", true);
#endif
#ifdef MOZ_E10S_COMPAT
pref("browser.tabs.remote", true);
#endif
// This pref governs whether we attempt to work around problems caused by
// plugins using OS calls to manipulate the cursor while running out-of-
// process. These workarounds all involve intercepting (hooking) certain

View File

@ -1256,6 +1256,11 @@
b.setAttribute("contextmenu", this.getAttribute("contentcontextmenu"));
b.setAttribute("tooltip", this.getAttribute("contenttooltip"));
if (Services.prefs.getPrefType("browser.tabs.remote") == Services.prefs.PREF_BOOL &&
Services.prefs.getBoolPref("browser.tabs.remote")) {
b.setAttribute("remote", "true");
}
if (window.gShowPageResizers && document.getElementById("addon-bar").collapsed &&
window.windowState == window.STATE_NORMAL) {
b.setAttribute("showresizer", "true");

View File

@ -3208,14 +3208,22 @@ pref("network.tcp.sendbuffer", 131072);
#endif
// Whether to disable acceleration for all widgets.
#ifdef MOZ_E10S_COMPAT
pref("layers.acceleration.disabled", true);
#else
pref("layers.acceleration.disabled", false);
#endif
// Whether to force acceleration on, ignoring blacklists.
pref("layers.acceleration.force-enabled", false);
#ifdef XP_WIN
// Whether to disable the automatic detection and use of direct2d.
#ifdef MOZ_E10S_COMPAT
pref("gfx.direct2d.disabled", true);
#else
pref("gfx.direct2d.disabled", false);
#endif
// Whether to attempt to enable Direct2D regardless of automatic detection or
// blacklisting
pref("gfx.direct2d.force-enabled", false);