Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / docshell / test / chrome / test_bug428288.html
blob4697aed51559155558400b096fe6a2229450a98b
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=428288
5 -->
6 <head>
7 <title>Test for Bug 428288</title>
8 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=428288">Mozilla Bug 428288</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
15 <iframe name="target"></iframe>
16 <a id="crashy" target="target" href="about:blank">crash me</a>
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 428288 */
23 function makeClick() {
24 var event = document.createEvent("MouseEvents");
25 event.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0,
26 false, false, false, false, 0, null);
27 document.getElementById("crashy").dispatchEvent(event);
28 return true;
31 ok(makeClick(), "Crashes if bug 428288 is present");
33 </script>
34 </pre>
35 </body>
36 </html>