Commit f5ee2f7f authored by jamesr@chromium.org's avatar jamesr@chromium.org

Revert 99688 - Allow gpu features for about:blank (unlike other about: schemes)

TEST=run with --force-compositing-mode and --show-fps-counter, verify
that the counter shows up on about:blank and not on other about: pages
BUG=95107


Review URL: http://codereview.chromium.org/7779022

TBR=jamesr@chromium.org
Review URL: http://codereview.chromium.org/7782021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99875 0039d316-1c4b-4281-b951-d872f2087c98
parent 33b1550f
...@@ -1802,8 +1802,7 @@ WebPreferences TabContents::GetWebkitPrefs() { ...@@ -1802,8 +1802,7 @@ WebPreferences TabContents::GetWebkitPrefs() {
// chrome-devtools: pages (unless it's specifically allowed). // chrome-devtools: pages (unless it's specifically allowed).
if ((GetURL().SchemeIs(chrome::kChromeDevToolsScheme) || if ((GetURL().SchemeIs(chrome::kChromeDevToolsScheme) ||
GetURL().SchemeIs(chrome::kChromeUIScheme) || GetURL().SchemeIs(chrome::kChromeUIScheme) ||
(GetURL().SchemeIs(chrome::kAboutScheme) && GetURL().SchemeIs(chrome::kAboutScheme)) &&
GetURL().spec() != chrome::kAboutBlankURL)) &&
!web_prefs.allow_webui_compositing) { !web_prefs.allow_webui_compositing) {
web_prefs.accelerated_compositing_enabled = false; web_prefs.accelerated_compositing_enabled = false;
web_prefs.accelerated_2d_canvas_enabled = false; web_prefs.accelerated_2d_canvas_enabled = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment