4 <script type=
"text/javascript" src=
"/MochiKit/packed.js"></script>
5 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <script type=
"text/javascript" src=
"/tests/SimpleTest/EventUtils.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
8 <script type=
"text/javascript" src=
"NavigationUtils.js"></script>
9 <style type=
"text/css">
10 iframe
{ width: 90%; height: 50px; }
13 window
.onload = function() {
14 navigateByLocation(frames
[0]);
15 navigateByOpen("child1");
16 navigateByForm("child2");
17 navigateByHyperlink("child3");
19 xpcWaitForFinishedFrames(function() {
20 isNavigated(frames
[0], "Should be able to navigate off-domain child by setting location.");
21 isNavigated(frames
[1], "Should be able to navigate off-domain child by calling window.open.");
22 isNavigated(frames
[2], "Should be able to navigate off-domain child by submitting form.");
23 isNavigated(frames
[3], "Should be able to navigate off-domain child by targeted hyperlink.");
32 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=408052">Mozilla Bug
408052</a>
34 <iframe name=
"child0" src=
"http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
35 <iframe name=
"child1" src=
"http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
36 <iframe name=
"child2" src=
"http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
37 <iframe name=
"child3" src=
"http://test1.example.org:80/tests/docshell/test/navigation/blank.html"></iframe>
40 <script type=
"text/javascript">
41 SimpleTest
.waitForExplicitFinish();