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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp

Issue 2536713002: Part 3.3: Is policy list subsumed under subsuming policy? (Closed)
Patch Set: Using allowAllInline() 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/frame/csp/CSPDirectiveList.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
index d501f9bbe8cf94dc2ef1ebf0f6b6d96467255f76..041ca88f55a15b016d9b184588ae7d5da7c45cbc 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -164,8 +164,7 @@ bool CSPDirectiveList::checkEval(SourceListDirective* directive) const {
}
bool CSPDirectiveList::checkInline(SourceListDirective* directive) const {
Mike West 2016/11/29 12:00:50 Can you just remove this method entirely, since it
- return !directive ||
- (directive->allowInline() && !directive->isHashOrNoncePresent());
+ return !directive || directive->allowAllInline();
}
bool CSPDirectiveList::isMatchingNoncePresent(SourceListDirective* directive,

Powered by Google App Engine
This is Rietveld 408576698