widget/tests/window_bug593307_offscreen.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <window title="Mozilla Bug 593307"
     4   width="100" height="100"
     5   onload="onLoad();"
     6   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     8   <script type="application/javascript"
     9           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js" />
    11 <body xmlns="http://www.w3.org/1999/xhtml" id="body">
    12 </body>
    14 <script class="testbody" type="application/javascript">
    15 <![CDATA[
    17 var centerscreen = null;
    18 var SimpleTest = window.arguments[0];
    19 var finish = window.arguments[1];
    21 function onLoad()
    22 {
    23   centerscreen = window.openDialog('window_bug593307_centerscreen.xul','', 'chrome,centerscreen,dependent,dialog=no');
    24 }
    26 function finished() {
    27   centerscreen.close();
    28   finish();
    29 }
    31 ]]>
    32 </script>
    34 </window>

mercurial