layout/base/crashtests/373919.xhtml

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.

michael@0 1 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 2
michael@0 3 <object id="mw_ij" xmlns="http://www.w3.org/1999/xhtml" style="display: none;"/>
michael@0 4
michael@0 5 <textnode xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 6 <dir xmlns="http://www.w3.org/1999/xhtml" style="overflow: scroll;position: fixed;"/>
michael@0 7 </textnode>
michael@0 8
michael@0 9 <wizardpage id="mw_ab" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 10 <label id="mw_kl">
michael@0 11 <toolbox style="float: right;"/>
michael@0 12 </label>
michael@0 13 </wizardpage>
michael@0 14
michael@0 15 <listbox id="mw_cd" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/>
michael@0 16
michael@0 17 <script xmlns="http://www.w3.org/1999/xhtml">
michael@0 18 function doe() {
michael@0 19 document.getElementById('mw_ab').insertBefore(document.getElementById('mw_cd'), document.getElementById('mw_ab').childNodes[0]);
michael@0 20 document.documentElement.offsetHeight;
michael@0 21 document.getElementById('mw_ij').appendChild(document.getElementById('mw_kl'));
michael@0 22 document.documentElement.offsetHeight;
michael@0 23 }
michael@0 24 setTimeout(doe, 100);
michael@0 25
michael@0 26 setTimeout(function() {window.location=window.location;}, 500);
michael@0 27 </script>
michael@0 28
michael@0 29 </html>

mercurial