<!DOCTYPE html>
<body>
<script>
if (window.internals) {
    var settings = window.internals.mockContentFilterSettings;
    settings.enabled = true;
    settings.decisionPoint = "afterRedirect";
    settings.decision = "block";
    settings.blockedString = "<!DOCTYPE html><body>PASS";
}

if (window.testRunner)
    testRunner.waitUntilDone();

var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
iframe.addEventListener("load", function(event) {
    if (window.testRunner)
        testRunner.notifyDone();
}, false);
iframe.src = "/resources/redirect.py?url=/contentfiltering/resources/fail.html";
</script>
