Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2907)

Unified Diff: components/test_runner/test_runner.cc

Issue 2134723002: Reland #1: Fix re-usage of stale cached WebPreferences in RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanly reset WebPreferences with the initial untampered defaults. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/test_runner/test_runner.cc
diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
index 2c09561a1839db360232c7d819289024938affd2..0639f8d67adfb83940a2afb48dcc9c848a029412 100644
--- a/components/test_runner/test_runner.cc
+++ b/components/test_runner/test_runner.cc
@@ -2321,6 +2321,8 @@ void TestRunner::OverridePreference(const std::string& key,
prefs->should_respect_image_orientation = value->BooleanValue();
} else if (key == "WebKitWebSecurityEnabled") {
prefs->web_security_enabled = value->BooleanValue();
+ } else if (key == "WebKitSpatialNavigationEnabled") {
+ prefs->spatial_navigation_enabled = value->BooleanValue();
} else {
std::string message("Invalid name for preference: ");
message.append(key);

Powered by Google App Engine
This is Rietveld 408576698