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: if input is valid and its checkedness hasn't changed,
4 it should not be affected by :-moz-ui-valid pseudo-class. -->
5 <link rel='stylesheet' type='text/css' href='style.css'>
6 <body onload="if (document.getElementById('i').mozMatchesSelector(':-moz-ui-valid')) {
7 document.body.textContent='FAIL';
8 } else {
9 document.body.textContent='SUCCESS';
10 }
11 document.documentElement.className='';">
12 <input id='i' type='checkbox'>
13 </body>
14 </html>