blob: 25407a3d55fc63b6eea1a09f71f489401ded40d1 [file] [log] [blame]
<!DOCTYPE html>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
// The following test works by loading a page over HTTPS, which requests a
// resource over HTTP when the document has the default referrer policy
// (interpreted as no-referrer-when-downgrade). After the request is
// prepared/made, the document's referrer policy is set to 'origin'. The test
// asserts that the referrer associated with the request when the document's
// referrer policy was no-referrer-when-downgrade is empty, and not the origin.
// This test is similar to
// referrer-policy-conflicting-policies-{font-face,image-set}.html
document.location = "https://127.0.0.1:8443/security/resources/referrer-policy-conflicting-policies.html";
</script>