blob: a28275be564d6f8aa4024af4f1fbc056662e0651 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.addOriginAccessAllowListEntry(location.origin, location.protocol, '', false);
}
var blobUrl = URL.createObjectURL(new Blob([
"<script>" +
"try {" +
" history.pushState(null, null, " + JSON.stringify(document.URL) + ");" +
" document.write('FAIL: pushState from blob:-URL succeeded.');" +
"} catch(e) {" +
" document.write('PASS: pushState from blob:-URL was blocked.');" +
"}" +
"if (window.testRunner)" +
" testRunner.notifyDone();" +
"<\/script>"
], {type:"text/html"}));
location.href = blobUrl;
</script>