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