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

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

Issue 2502843002: DevTools: issue document.write(script) violation reports. (Closed)
Patch Set: rebaselined 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/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index c9e0ec66b0f1fb819d8619d26ff76cf2801b2948..0913608e427c86b8b9d6bf738dc68b122671840d 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -125,6 +125,8 @@ bool shouldDisallowFetchForMainFrameScript(ResourceRequest& request,
if (defer != FetchRequest::NoDefer)
return false;
+ PerformanceMonitor::documentWriteFetchScript(&document);
+
if (!request.url().protocolIsInHTTPFamily())
return false;

Powered by Google App Engine
This is Rietveld 408576698