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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html

Issue 2450343002: Apply document's referrer policy on client-initiated reload (Closed)
Patch Set: Created 4 years, 2 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/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html b/third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html
new file mode 100644
index 0000000000000000000000000000000000000000..1af4f44743e8ac630d0917fcfc063e4b1e0dbf4c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/post-referrer-on-reload.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<head>
+ <meta name="referrer" content="no-referrer">
+ <script>
+ if (localStorage["reloaded"]) {
+ window.parent.postMessage({ referrer: document.referrer }, "*");
+ } else {
+ localStorage["reloaded"] = true;
+ location.reload();
+ }
+ </script>
+</head>
+<body></body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698