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>
10 window
.onload = function () {
11 document
.getElementById("link0").href
= target_url
;
12 sendMouseEvent({type
:"click"}, "link0");
14 xpcWaitForFinishedFrames(function() {
15 var array_of_frames
= xpcGetFramesByName("window0");
16 is(array_of_frames
.length
, 1, "Should only open one window using a fancy hyperlink.");
18 for (var i
=0; i
< array_of_frames
.length
; ++i
)
19 array_of_frames
[i
].close();
28 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=278916">Mozilla Bug
278916</a>
30 <a id=
"link0" target=
"window0" onclick=
"window.open('', 'window0', 'width=10,height=10');">This is a fancy hyperlink
</a>
33 <script type=
"text/javascript">
34 SimpleTest
.waitForExplicitFinish();