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 <!-- form with one invalid element and dynamically made it element with
3 barred constraints -->
4 <html class='reftest-wait'>
5 <head>
6 <style>
7 form:invalid { display: none; }
8 </style>
9 </head>
10 <script>
11 function onloadHandler()
12 {
13 document.getElementById('i').readOnly = 'ro';
14 document.documentElement.className = '';
15 }
16 </script>
17 <body onload='onloadHandler();'>
18 <form>
19 <input id='i' required>
20 </form>
21 </body>
22 </html>