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

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

Issue 2480303002: CSP3: Implement 'worker-src'. (Closed)
Patch Set: ServiceWorker Created 4 years, 1 month 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 bcea454f7557c90093ad816a74a70254c2bb3fc1..6ea89dcdc134408d74db62fd3ff23aeeb780cb8a 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -1594,8 +1594,8 @@ bool FrameLoader::shouldContinueForNavigationPolicy(
if (parentFrame) {
ContentSecurityPolicy* parentPolicy =
parentFrame->securityContext()->contentSecurityPolicy();
- if (!parentPolicy->allowChildFrameFromSource(request.url(),
- request.redirectStatus())) {
+ if (!parentPolicy->allowFrameFromSource(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