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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp

Issue 2436003002: CSP: Add 'script-sample' to violation reports. (Closed)
Patch Set: Rebase Created 3 years, 10 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/html/HTMLFrameElementBase.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
index 05af446924bb04756f3ea4683a41b79fa907ecd3..7837cc17c4b58bd37b60232802b9f898d5e034f4 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFrameElementBase.cpp
@@ -97,7 +97,7 @@ void HTMLFrameElementBase::openURL(bool replaceCurrentItem) {
// so that the frame is populated with something reasonable.
if (ContentSecurityPolicy::shouldBypassMainWorld(&document()) ||
document().contentSecurityPolicy()->allowJavaScriptURLs(
- this, document().url(), OrdinalNumber::first())) {
+ this, url.getString(), document().url(), OrdinalNumber::first())) {
scriptURL = url;
} else {
if (contentFrame())

Powered by Google App Engine
This is Rietveld 408576698