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

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

Issue 2025633002: Move 'ContentSecurityPolicy::RedirectStatus' into 'ResourceRequest' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: foolip@ Created 4 years, 7 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/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index c1c682d307eeb3b3702af5394873188c034fe27b..9f1fb8f9711f8afa4a2a051a96cd71da65e5d01f 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1371,10 +1371,7 @@ bool FrameLoader::shouldContinueForNavigationPolicy(const ResourceRequest& reque
Frame* parentFrame = m_frame->tree().parent();
if (parentFrame) {
ContentSecurityPolicy* parentPolicy = parentFrame->securityContext()->contentSecurityPolicy();
- ContentSecurityPolicy::RedirectStatus redirectStatus = request.followedRedirect()
- ? ContentSecurityPolicy::DidRedirect
- : ContentSecurityPolicy::DidNotRedirect;
- if (!parentPolicy->allowChildFrameFromSource(request.url(), redirectStatus)) {
+ if (!parentPolicy->allowChildFrameFromSource(request.url(), request.redirectStatus())) {
// Fire a load event, as timing attacks would otherwise reveal that the
// frame was blocked. This way, it looks like every other cross-origin
// page load.

Powered by Google App Engine
This is Rietveld 408576698