layout/reftests/css-invalid/form/form-invalid-and-barred-remove-barred.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 <!-- form with one invalid element and a barred for constraint 
     3 validation element then you remove the second element -->
     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.forms[0].removeChild(document.getElementById('j'));
    14       document.documentElement.className = '';
    15     }
    16   </script>
    17   <body onload='onloadHandler();'>
    18     <form>
    19       <input required>
    20       <input id='j' value='foo' readonly>
    21     </form>
    22   </body>
    23 </html>

mercurial