dom/browser-element/mochitest/file_browserElement_TargetBlank.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html>
     2 <body>
     3 <a id='link' target='_blank' href="http://example.com">Click me</a>
     5 <script>
     6 function clickLink() {
     7   // See testcase in bug 666604.
     8   var e = document.createEvent("MouseEvent");
     9   e.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0,
    10                    false, false, false, false, 0, null);
    11   document.getElementById('link').dispatchEvent(e);
    12 }
    14 addEventListener('load', function() { setTimeout(clickLink, 0) });
    15 </script>
    17 </body>
    18 </html>

mercurial