blob: 15a5a50030f82b3decbc5f053f8b8a8f81435d78 [file] [log] [blame]
<html>
<head>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
if (window.testRunner) {
testRunner.setAllowFileAccessFromFileURLs(false);
}
</script>
</head>
<body>
<script>
async_test((test) => {
window.onmessage = (e) => {
if (e.data === 'DONE') {
test.done();
return;
}
assert_unreached(e.data);
};
}, 'Test if file: origin is treate as (virtually) opaque.');
</script>
<iframe src="resources/xmlhttprequest-no-file-access-real.html"></iframe>
</body>
</html>