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

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

Issue 2421473004: CSP: Fire 'SecurityPolicyViolation' on the offending element. (Closed)
Patch Set: Test. Created 4 years, 2 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/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 7a6688b1a524f0d35371390cd52e2ea488d15955..1fb0078b4c6f065e7c865197b59f9ee9d11caded 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -3836,7 +3836,8 @@ void Element::styleAttributeChanged(
(containingShadowRoot() &&
containingShadowRoot()->type() == ShadowRootType::UserAgent) ||
document().contentSecurityPolicy()->allowInlineStyle(
- document().url(), String(), startLineNumber, newStyleString)) {
+ this, document().url(), String(), startLineNumber,
+ newStyleString)) {
setInlineStyleFromString(newStyleString);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698