| 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>
|
|
|