layout/xul/test/test_bug398982-2.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 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
     4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     5         xmlns:html="http://www.w3.org/1999/xhtml"
     6         title="Test for Bug 398982">
     7 <!--
     8 https://bugzilla.mozilla.org/show_bug.cgi?id=398982
     9 -->
    10   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    12 <popupgroup style="position: absolute; ">
    13 <tooltip type="zzz">
    14 <treecols/>
    15 </tooltip>
    17 <script xmlns="http://www.w3.org/1999/xhtml" class="testbody" type="application/javascript">
    18 <![CDATA[
    19 function doe() {
    20   document.getElementsByTagName('popupgroup')[0].removeAttribute('style');
    21   is(0, 0, "Test is successful if we get here without crashing");
    22   SimpleTest.finish();
    23 }
    24 function do_test() {
    25   setTimeout(doe, 200);
    26 }
    27 SimpleTest.waitForExplicitFinish();
    28 addLoadEvent(do_test);
    29 ]]>
    30 </script>
    31 </popupgroup>
    32 <html:body></html:body> <!-- XXX SimpleTest.showReport() requires a html:body -->
    33 </window>

mercurial