<!-- webkit-test-runner [ useEphemeralSession=true ] -->
<!DOCTYPE html>
<script>
function test() {
    if (window.testRunner)
        testRunner.notifyDone();
}

if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsText();
    testRunner.dumpChildFramesAsText();
    testRunner.setAlwaysAcceptCookies(false);
}
</script>

<p>Checks that subresources that got redirected do not circumvent third-party cookie rules.<br>This test PASS if you can see the text "FAILED: Cookie not set".</p>
<iframe onload="test" src="http://localhost:8000/cookies/resources/set-cookie-on-redirect.py?step=1"></iframe>
