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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/referrer-on-client-reload.html

Issue 2450343002: Apply document's referrer policy on client-initiated reload (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html » ('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 <head>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 </head>
6 <body></body>
7
8 <script>
9 async_test(function () {
10 var test = this;
11 var saw_original_referrer = false;
12 window.addEventListener("message", test.step_func(function (event) {
13 assert_equals(event.data.referrer, "");
14 test.done();
15 }));
16
17 var iframe = document.createElement("iframe");
18 iframe.src = "resources/post-referrer-on-reload.html";
19 document.body.appendChild(iframe);
20 }, "Reloading a document uses the document's referrer policy");
21 </script>
22
23 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698