2 <script src=
"/js-test-resources/js-test.js"></script>
3 <script src=
"resources/referrer-echo.php" type=
"text/javascript"></script>
5 description("Check that Referrer: for validation requests are correctly set.");
6 window
.jsTestIsAsync
= true;
8 // The above script adds the 'referrer' global.
9 shouldBeTrue('referrer.indexOf("subresource-revalidation-referrer.html") >= 0');
12 function iframeLoaded(ref
) {
14 // Navigating the iframe-embedded anchor will use the iframe's
17 window
.frames
[0].document
.getElementsByTagName("a")[0].click();
20 shouldBeTrue('referrer.indexOf("subresource-revalidation-referrer-iframe.html") >= 0');
25 <iframe src=
"resources/subresource-revalidation-referrer-iframe.html"></iframe>