Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 }, "*"); | |
| OLD | NEW |