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.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
5 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7 <script type="text/javascript" src="NavigationUtils.js"></script>
8 <style type="text/css">
9 iframe { width: 90%; height: 50px; }
10 </style>
11 <script>
12 if (navigator.platform.startsWith("Linux")) {
13 SimpleTest.expectAssertions(0, 1);
14 }
16 window.onload = function () {
17 navigateByLocation(window0);
18 navigateByOpen("window1");
19 navigateByForm("window2");
20 navigateByHyperlink("window3");
22 xpcWaitForFinishedFrames(function() {
23 isNavigated(window0, "Should be able to navigate popup by setting location.");
24 isNavigated(window1, "Should be able to navigate popup by calling window.open.");
25 isNavigated(window2, "Should be able to navigate popup by submitting form.");
26 isNavigated(window3, "Should be able to navigate popup by targeted hyperlink.");
28 window0.close();
29 window1.close();
30 window2.close();
31 window3.close();
33 xpcCleanupWindows();
34 SimpleTest.finish();
35 }, 4);
36 }
38 var window0 = window.open("http://test1.example.org:80/tests/docshell/test/navigation/blank.html", "window0", "width=10,height=10");
39 var window1 = window.open("http://test1.example.org:80/tests/docshell/test/navigation/blank.html", "window1", "width=10,height=10");
40 var window2 = window.open("http://test1.example.org:80/tests/docshell/test/navigation/blank.html", "window2", "width=10,height=10");
41 var window3 = window.open("http://test1.example.org:80/tests/docshell/test/navigation/blank.html", "window3", "width=10,height=10");
42 </script>
43 </head>
44 <body>
45 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=408052">Mozilla Bug 408052</a>
46 <pre id="test">
47 <script type="text/javascript">
48 SimpleTest.waitForExplicitFinish();
49 </script>
50 </pre>
51 </body>
52 </html>