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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentInit.cpp

Issue 1617043002: Introduce AncestorThrottle, which will process 'X-Frame-Options' headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@block-response
Patch Set: DCHECK. 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/dom/DocumentInit.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentInit.cpp b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
index df71028100069e2471b3b152f2cad66d4a932f10..6a8c79eaf283ef8f83ed812faf53b2704e7a6be7 100644
--- a/third_party/WebKit/Source/core/dom/DocumentInit.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
@@ -98,11 +98,10 @@ SandboxFlags DocumentInit::getSandboxFlags() const
FrameLoader* loader = &frameForSecurityContext()->loader();
SandboxFlags flags = loader->effectiveSandboxFlags();
- // If the load was blocked by X-Frame-Options or CSP, force the Document's
- // origin to be unique, so that the blocked document appears to be a normal
- // cross-origin document's load per CSP spec:
+ // If the load was blocked by CSP, force the Document's origin to be unique, so that
+ // the blocked document appears to be a normal cross-origin document's load per CSP spec:
// https://www.w3.org/TR/CSP2/#directive-frame-ancestors
- if (loader->documentLoader() && loader->documentLoader()->wasBlockedAfterXFrameOptionsOrCSP())
+ if (loader->documentLoader() && loader->documentLoader()->wasBlockedAfterCSP())
flags |= SandboxOrigin;
return flags;

Powered by Google App Engine
This is Rietveld 408576698