Bug 1470678 [wpt PR 11640] - Add a test for text-decoration in tables quirk, a=testonly
[gecko.git] / docshell / test / test_bug475636.html
blob47efd3d0d77665c101e3d8305eecceec6a3f95c7
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=475636
5 Test that refresh to data: URIs don't inherit the principal
6 -->
7 <head>
8 <title>Test for Bug 475636</title>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
12 </head>
13 <body onload="gen.next()">
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=475636">Mozilla Bug 475636</a>
16 <div id="content" style="display: none">
18 </div>
19 <iframe id=loader></iframe>
20 <pre id="test">
21 <script class="testbody" type="application/javascript">
23 SimpleTest.waitForExplicitFinish();
25 gen = runTests();
27 window.private = 42;
29 window.addEventListener("message", function(e) {
30 gen.next(e.data);
31 });
33 var url = "file_bug475636.sjs?";
35 function* runTests() {
36 var loader = document.getElementById('loader');
37 for (var testNum = 1; ; ++testNum) {
38 loader.src = url + testNum;
39 let res = (yield);
40 if (res == "done") {
41 SimpleTest.finish();
42 return;
44 is(res, "pass");
49 </script>
50 </pre>
51 </body>
52 </html>