content/xul/document/test/test_bug414907.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 <!--
     5 https://bugzilla.mozilla.org/show_bug.cgi?id=414907
     6 -->
     7 <window title="Mozilla Bug 414907"
     8   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     9   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
    11   <vbox hidden="true">
    12     <bindings xmlns="http://www.mozilla.org/xbl" style="display: block;"
    13                 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    14       <binding id="anon">
    15         <implementation>
    16           <constructor>
    17             <![CDATA[
    18               var node = this.firstChild;
    19               this.palette = node;
    20               this.removeChild(node);
    21             ]]>
    22           </constructor>
    23         </implementation>
    24       </binding>
    25     </bindings>
    26   </vbox>
    28   <!-- test results are displayed in the html:body -->
    29   <body xmlns="http://www.w3.org/1999/xhtml">
    30   <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=414907"
    31      target="_blank">Mozilla Bug 414907</a>
    32   </body>
    34   <!-- test code goes here -->
    35   <script type="application/javascript"><![CDATA[
    37   SimpleTest.waitForExplicitFinish();
    38   window.onload = function onload() {
    39     is($("box").palette.getAttribute("label"), $("command").getAttribute("label"));
    40     SimpleTest.finish();
    41   }
    43   ]]></script>
    45     <command id="command" label="label"/>
    47     <box id="box" style="-moz-binding:url('#anon');">
    48         <button observes="command"/>
    49     </box>
    53 </window>

mercurial