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 | <head> |
michael@0 | 4 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 5 | <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 7 | <script type="text/javascript" src="NavigationUtils.js"></script> |
michael@0 | 8 | <script> |
michael@0 | 9 | window.onload = function () { |
michael@0 | 10 | document.getElementById("link0").href = target_url; |
michael@0 | 11 | sendMouseEvent({type:"click"}, "link0"); |
michael@0 | 12 | |
michael@0 | 13 | xpcWaitForFinishedFrames(function() { |
michael@0 | 14 | var array_of_frames = xpcGetFramesByName("window0"); |
michael@0 | 15 | is(array_of_frames.length, 1, "Should only open one window using a fancy hyperlink."); |
michael@0 | 16 | |
michael@0 | 17 | for (var i=0; i < array_of_frames.length; ++i) |
michael@0 | 18 | array_of_frames[i].close(); |
michael@0 | 19 | |
michael@0 | 20 | xpcCleanupWindows(); |
michael@0 | 21 | SimpleTest.finish(); |
michael@0 | 22 | }, 1); |
michael@0 | 23 | } |
michael@0 | 24 | </script> |
michael@0 | 25 | </head> |
michael@0 | 26 | <body> |
michael@0 | 27 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=278916">Mozilla Bug 278916</a> |
michael@0 | 28 | <div id="links"> |
michael@0 | 29 | <a id="link0" target="window0" onclick="window.open('', 'window0', 'width=10,height=10');">This is a fancy hyperlink</a> |
michael@0 | 30 | </div> |
michael@0 | 31 | <pre id="test"> |
michael@0 | 32 | <script type="text/javascript"> |
michael@0 | 33 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 34 | </script> |
michael@0 | 35 | </pre> |
michael@0 | 36 | </body> |
michael@0 | 37 | </html> |