Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=481647
5 -->
6 <head>
7 <title>Test for Bug 481647</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=481647">Mozilla Bug 481647</a>
13 <p id="display">
14 <iframe src="javascript:'aaa'"></iframe>
15 <iframe src="javascript:document.write('aaa'); document.close();"></iframe>
16 </p>
17 <div id="content" style="display: none">
19 </div>
20 <pre id="test">
21 <script type="application/javascript">
23 /** Test for Bug 481647 **/
24 SimpleTest.waitForExplicitFinish()
26 function testFrame(num) {
27 is(window.frames[num].document.baseURI, document.baseURI,
28 "Unexpected base URI in frame " + num);
29 }
31 addLoadEvent(function() {
32 for (var i = 0; i < 2; ++i) {
33 testFrame(i);
34 }
36 SimpleTest.finish();
37 });
39 </script>
40 </pre>
41 </body>
42 </html>