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 <html class="reftest-wait">
3 <!-- Test: Remove the required attribute from an element to make it optional. -->
4 <link rel='stylesheet' type='text/css' href='css-required-style.css'>
6 <script type="text/javascript">
7 function removeRequired()
8 {
9 document.getElementById('i').removeAttribute('required');
10 }
11 function disableReftestWait()
12 {
13 document.documentElement.className = '';
14 }
15 </script>
17 <body onload="removeRequired(); disableReftestWait();">
18 <input type="text" id="i" required>
19 </body>
20 </html>