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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/shared-worker-with-header.html

Issue 2086143006: Implement Referrer-Policy header for workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shared worker path Created 4 years, 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Worker served with Referrer-Policy header</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/resources/get-host-info.js?pipe=sub"></script>
6 <script>
7 async_test(function(t) {
8 var worker = new SharedWorker('resources/worker.php');
9 worker.port.onmessage = t.step_func(function (e) {
10 assert_equals(e.data, get_host_info()['HTTP_ORIGIN'] + '/');
11 t.done();
12 });
13 worker.port.start();
14 }, 'Worker script served with a Referrer-Policy header');
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698