widget/tests/window_bug593307_offscreen.xul

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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