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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp

Issue 2767413002: FrameFetchContext should respect BypassingCache for main resources (Closed)
Patch Set: merge master Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
index 0f7085a1c6831e58cd0f6ce52ee3f0988a6aefed..a79d286fc153dc353a4daf3b40da20a012cec6f1 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -602,6 +602,16 @@ TEST_F(FrameFetchContextTest, MainResource) {
EXPECT_EQ(WebCachePolicy::BypassingCache,
childFetchContext->resourceRequestCachePolicy(
request, Resource::MainResource, FetchRequest::NoDefer));
+
+ // Per-frame bypassing reload, but parent load type is different.
+ // This is not the case users can trigger through user interfaces, but for
+ // checking code correctness and consistency.
+ document->loader()->setLoadType(FrameLoadTypeReload);
+ childFrame->loader().documentLoader()->setLoadType(
+ FrameLoadTypeReloadBypassingCache);
+ EXPECT_EQ(WebCachePolicy::BypassingCache,
+ childFetchContext->resourceRequestCachePolicy(
+ request, Resource::MainResource, FetchRequest::NoDefer));
}
TEST_F(FrameFetchContextTest, SetFirstPartyCookieAndRequestorOrigin) {
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698