layout/generic/test/test_plugin_focus.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <html title="Test plugin focus control">
     2 <head>
     3   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     4   <script type="text/javascript" src="enableTestPlugin.js"></script>
     5   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     6 </head>
     7 <body>
     9 <script class="testbody" type="application/javascript">
    11 var child;
    12 function childDone() {
    13   child.close();
    14   // This test has a history of focus issues, but waiting for focus to return
    15   // from the child window instead of attempting to reclaim it after finish
    16   // seems to prevent some kind of race on win8 (Bug 874843)
    17   SimpleTest.waitForFocus(SimpleTest.finish, window);
    18 }
    20 SimpleTest.waitForExplicitFinish();
    21 child = window.open("plugin_focus_helper.html", "", "width=620,height=320");
    22 </script>
    24 </body>
    25 </html>

mercurial