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

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

Issue 2402233002: Tag CSP violation reports as CSP reports, not as ping (Closed)
Patch Set: Rebase on patch for crbug.com/129353 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
« no previous file with comments | « extensions/common/api/web_request.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index b17334d2f92fd32e889938edec2b7d6f8302c096..e138e8b3c4c66044a01d9e5d4880ff787802dd1f 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -528,7 +528,7 @@ void PingLoader::sendViolationReport(LocalFrame* frame,
: "application/json");
request.setHTTPBody(std::move(report));
finishPingRequestInitialization(request, frame,
- WebURLRequest::RequestContextPing);
+ WebURLRequest::RequestContextCSPReport);
StoredCredentials credentialsAllowed =
SecurityOrigin::create(reportURL)->isSameSchemeHostPort(
« no previous file with comments | « extensions/common/api/web_request.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698