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 <html>
2 <head>
3 <script>
4 "use strict";
6 function showNotification() {
7 var options = {
8 dir: undefined,
9 lang: undefined,
10 body: "Test body",
11 tag: "Test tag",
12 icon: undefined,
13 };
14 return new Notification("Test title", options);
15 }
16 </script>
17 </head>
18 <body>
19 <form id="notificationForm" onsubmit="showNotification();">
20 <input type="submit" value="Show notification" id="submit"/>
21 </form>
22 </body>
23 </html>