Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=475636 |
michael@0 | 5 | Test that refresh to data: URIs don't inherit the principal |
michael@0 | 6 | --> |
michael@0 | 7 | <head> |
michael@0 | 8 | <title>Test for Bug 475636</title> |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | |
michael@0 | 11 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 12 | </head> |
michael@0 | 13 | <body onload="gen.next()"> |
michael@0 | 14 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=475636">Mozilla Bug 475636</a> |
michael@0 | 15 | |
michael@0 | 16 | <div id="content" style="display: none"> |
michael@0 | 17 | |
michael@0 | 18 | </div> |
michael@0 | 19 | <iframe id=loader></iframe> |
michael@0 | 20 | <pre id="test"> |
michael@0 | 21 | <script class="testbody" type="application/javascript;version=1.8"> |
michael@0 | 22 | |
michael@0 | 23 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 24 | |
michael@0 | 25 | gen = runTests(); |
michael@0 | 26 | |
michael@0 | 27 | window.private = 42; |
michael@0 | 28 | |
michael@0 | 29 | window.addEventListener("message", function(e) { |
michael@0 | 30 | gen.send(e.data); |
michael@0 | 31 | }, false); |
michael@0 | 32 | |
michael@0 | 33 | var url = "file_bug475636.sjs?"; |
michael@0 | 34 | |
michael@0 | 35 | function runTests() { |
michael@0 | 36 | var loader = document.getElementById('loader'); |
michael@0 | 37 | for (var testNum = 1; ; ++testNum) { |
michael@0 | 38 | loader.src = url + testNum; |
michael@0 | 39 | let res = (yield); |
michael@0 | 40 | if (res == "done") { |
michael@0 | 41 | SimpleTest.finish(); |
michael@0 | 42 | yield undefined; |
michael@0 | 43 | } |
michael@0 | 44 | is(res, "pass"); |
michael@0 | 45 | } |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | |
michael@0 | 49 | </script> |
michael@0 | 50 | </pre> |
michael@0 | 51 | </body> |
michael@0 | 52 | </html> |