2009-03-10 09:03:39 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=475636
|
|
|
|
Test that refresh to data: URIs don't inherit the principal
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Test for Bug 475636</title>
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
</head>
|
|
|
|
<body onload="gen.next()">
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=475636">Mozilla Bug 475636</a>
|
|
|
|
|
|
|
|
<div id="content" style="display: none">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<iframe id=loader></iframe>
|
|
|
|
<pre id="test">
|
2017-02-23 00:10:07 +03:00
|
|
|
<script class="testbody" type="application/javascript">
|
2009-03-10 09:03:39 +03:00
|
|
|
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
|
|
|
gen = runTests();
|
|
|
|
|
|
|
|
window.private = 42;
|
|
|
|
|
|
|
|
window.addEventListener("message", function(e) {
|
2016-12-01 12:04:50 +03:00
|
|
|
gen.next(e.data);
|
2017-01-17 13:50:25 +03:00
|
|
|
});
|
2009-03-10 09:03:39 +03:00
|
|
|
|
|
|
|
var url = "file_bug475636.sjs?";
|
|
|
|
|
2016-12-01 12:04:50 +03:00
|
|
|
function* runTests() {
|
2009-03-10 09:03:39 +03:00
|
|
|
var loader = document.getElementById('loader');
|
|
|
|
for (var testNum = 1; ; ++testNum) {
|
|
|
|
loader.src = url + testNum;
|
|
|
|
let res = (yield);
|
|
|
|
if (res == "done") {
|
|
|
|
SimpleTest.finish();
|
2016-12-01 12:04:50 +03:00
|
|
|
return;
|
2009-03-10 09:03:39 +03:00
|
|
|
}
|
|
|
|
is(res, "pass");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|