Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | --> |
michael@0 | 5 | <head> |
michael@0 | 6 | <title>Test for creating XUL elements, bug 590870</title> |
michael@0 | 7 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body onload="gen.next()"> |
michael@0 | 11 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=590870">Mozilla Bug 590870</a> |
michael@0 | 12 | <p id="display"></p> |
michael@0 | 13 | <iframe id=iframe></iframe> |
michael@0 | 14 | <pre id="test"> |
michael@0 | 15 | <script class="testbody" type="application/javascript;version=1.8"> |
michael@0 | 16 | |
michael@0 | 17 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 18 | window.addEventListener("message", function(e) { gen.send(e.data) }, false); |
michael@0 | 19 | |
michael@0 | 20 | var gen = runTest(); |
michael@0 | 21 | |
michael@0 | 22 | function runTest() { |
michael@0 | 23 | var iframe = $('iframe'); |
michael@0 | 24 | iframe.src = "http://noxul.example.com/tests/content/base/test/file_bug590870.html"; |
michael@0 | 25 | is((yield), true, "shouldn't be able to create XUL elements"); |
michael@0 | 26 | |
michael@0 | 27 | iframe.src = "file_bug590870.html"; |
michael@0 | 28 | is((yield), false, "should be able to create XUL elements"); |
michael@0 | 29 | |
michael@0 | 30 | SimpleTest.finish(); |
michael@0 | 31 | yield undefined; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | </script> |
michael@0 | 35 | </pre> |
michael@0 | 36 | </body> |
michael@0 | 37 | </html> |