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

Unified Diff: content/shell/browser/layout_test/blink_test_controller.h

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: content/shell/browser/layout_test/blink_test_controller.h
diff --git a/content/shell/browser/layout_test/blink_test_controller.h b/content/shell/browser/layout_test/blink_test_controller.h
index be57e3841841e13e3c33ec531fcb58f9c5ce53d5..8a17fee3cfa3642195e533daea516b7e0eea12c2 100644
--- a/content/shell/browser/layout_test/blink_test_controller.h
+++ b/content/shell/browser/layout_test/blink_test_controller.h
@@ -248,6 +248,10 @@ class BlinkTestController : public base::NonThreadSafe,
gfx::Size initial_size_;
GURL test_url_;
+ // Stores the default test-adapted WebPreferences which is then used to fully
+ // reset the main window's preferences if and when it is reused.
+ WebPreferences default_prefs_;
+
// True if the WebPreferences of newly created RenderViewHost should be
// overridden with prefs_.
bool should_override_prefs_;

Powered by Google App Engine
This is Rietveld 408576698