content/test/reftest/bug439965-ref.html

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 <!DOCTYPE html>
     2 <html>
     3 <body>
     4 <script>
     5 function doe(aEl) {
     6 var doc = aEl.contentDocument;
     7 doc.designMode = 'on';
     9 try {
    10 doc.execCommand("insertHTML",false,'some text');
    11 } catch(e) {
    12   document.getElementById('result').innerHTML = e;
    13 }
    14 }
    15 </script>
    17 <iframe onload="doe(this)"></iframe><br>
    18 <pre id="result" style="background-color: red; width: 300px; white-space: -moz-pre-wrap;"></pre>
    19 </body>
    20 </html>

mercurial