Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 <!DOCTYPE html>
2 <!-- input in nested fieldset becomes barred -->
3 <html class='reftest-wait'>
4 <head>
5 <style>
6 fieldset:valid { background-color: green; }
7 fieldset:invalid { background-color: red; }
8 </style>
9 </head>
10 <script>
11 function onloadHandler()
12 {
13 document.getElementById('i').readOnly = true;
14 document.documentElement.className = '';
15 }
16 </script>
17 <body onload='onloadHandler();'>
18 <fieldset>
19 <fieldset>
20 <input id='i' required>
21 </fieldset>
22 </fieldset>
23 </body>
24 </html>