Tue, 06 Jan 2015 21:39:09 +0100
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>