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 <body onload="f()">
3 <p>
4 <style scoped>
5 p { color: green }
6 </style>
7 First
8 </p>
9 <p>Second</p>
10 <script>
11 function f() {
12 var style = document.getElementsByTagName("style")[0];
13 var p = document.getElementsByTagName("p")[1];
14 p.appendChild(style);
15 }
16 </script>
17 </body>