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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/referrer-policy-srcdoc.php

Issue 2400443004: Walk up frame tree for srcdoc referrer policies (Closed)
Patch Set: fix dynamic policy test 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 unified diff | Download patch
OLDNEW
(Empty)
1 window.addEventListener("message", function (event) {
2 if (event.data.command == "send-fetch-referrer") {
3 fetch(event.data.url).then(function (response) {
4 response.text().then(function (responseText) {
5 window.top.postMessage({
6 test: "send-fetch-referrer",
7 referrer: responseText
8 }, "*");
9 });
10 });
11 }
12 });
13
14 window.top.postMessage({
15 test: '<?php echo $_GET["test"] ?>',
16 referrer: '<?php echo $_SERVER["HTTP_REFERER"] ?>'
17 }, "*");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698