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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2257743002: Restore user state on ReloadwithoutSubResourceCacheRevalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix webkit_unit_tests Created 4 years, 4 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: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 914463ffe762c6ca0ed2198d2c850c74719a9632..a28fac48ada3c09273705f87ce4fd14bfbdb7f76 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -3262,6 +3262,8 @@ TEST_F(WebFrameTest, ReloadWithOverrideURLPreservesState)
webViewHelper.initializeAndLoad(m_baseURL + firstURL, true, &client);
webViewHelper.resize(WebSize(pageWidth, pageHeight));
webViewHelper.webView()->mainFrame()->setScrollOffset(WebSize(pageWidth / 4, pageHeight / 4));
+ // Ensure overview mode is disabled. Otherwise scale factor may be reset on reloads.
+ webViewHelper.webView()->settings()->setLoadWithOverviewMode(false);
webViewHelper.webView()->setPageScaleFactor(pageScaleFactor);
WebSize previousOffset = webViewHelper.webView()->mainFrame()->scrollOffset();

Powered by Google App Engine
This is Rietveld 408576698