layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-1.xul

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
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 <!DOCTYPE window>
     3 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()">
     4   <script type="application/javascript"><![CDATA[
     6   function run() {
     7     var c = document.getElementById("C");
     8     getComputedStyle(c, "").width; // flush
     9     c.style.MozBoxOrdinalGroup = "2";
    10     document.documentElement.removeAttribute("class");
    11   }
    13   ]]></script>
    14   <label id="B" value="B" style="-moz-box-ordinal-group: 2" />
    15   <label id="C" value="C" />
    16   <label id="A" value="A" />
    17 </window>

mercurial