Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index fe1abaf1a800cb3d311e5a973c78a6823936cf1c..3b7a9c87adec478b10beace602ae6a8bed5cb597 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -1692,10 +1692,11 @@ WebPreferences TabContents::GetWebkitPrefs() { |
render_view_host()->process()->browser_context(), false); |
// Force accelerated compositing and 2d canvas off for chrome:, about: and |
- // chrome-devtools: pages. |
- if (GetURL().SchemeIs(chrome::kChromeDevToolsScheme) || |
+ // chrome-devtools: pages (unless it's specifically allowed). |
+ if ((GetURL().SchemeIs(chrome::kChromeDevToolsScheme) || |
GetURL().SchemeIs(chrome::kChromeUIScheme) || |
- GetURL().SchemeIs(chrome::kAboutScheme)) { |
+ GetURL().SchemeIs(chrome::kAboutScheme)) && |
+ !web_prefs.allow_webui_compositing) { |
web_prefs.accelerated_compositing_enabled = false; |
web_prefs.accelerated_2d_canvas_enabled = false; |
} |