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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/report-strips-fragment.html

Issue 2619783002: CSP: Strip the fragment from reported URLs. (Closed)
Patch Set: Rebase. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script src="./resources/testharness-helper.js"></script>
5
6 <meta http-equiv="Content-Security-Policy" content="img-src 'none'">
7 <script>
8 async_test(t => {
9 waitUntilCSPEventForURL(t, "https://evil.com/img.png")
10 .then(t.step_func_done(e => {
11 var u = new URL(e.documentURI);
12 assert_equals(u.hash, "");
13 }));
14
15 window.location.hash = "should-not-appear-in-report";
16
17 var i = document.createElement("img");
18 i.src = "https://evil.com/img.png#boo";
19 }, "Reported document URI does not contain fragments.");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698