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

Unified 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, 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
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/referrer-on-client-reload.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrer-on-client-reload.html b/third_party/WebKit/LayoutTests/http/tests/security/referrer-on-client-reload.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc78a40c75e04a6c45e777908bf22c796910195c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/referrer-on-client-reload.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+</head>
+<body></body>
+
+<script>
+async_test(function () {
+ var test = this;
+ var saw_original_referrer = false;
+ window.addEventListener("message", test.step_func(function (event) {
+ assert_equals(event.data.referrer, "");
+ test.done();
+ }));
+
+ var iframe = document.createElement("iframe");
+ iframe.src = "resources/post-referrer-on-reload.html";
+ document.body.appendChild(iframe);
+}, "Reloading a document uses the document's referrer policy");
+</script>
+
+</html>
« 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