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 Components.utils.import("resource://gre/modules/Services.jsm");
3 function install(data, reason) {
4 Services.prefs.setIntPref("bootstraptest2.installed_version", 1);
5 }
7 function startup(data, reason) {
8 Services.prefs.setIntPref("bootstraptest2.active_version", 1);
9 }
11 function shutdown(data, reason) {
12 Services.prefs.setIntPref("bootstraptest2.active_version", 0);
13 }
15 function uninstall(data, reason) {
16 Services.prefs.setIntPref("bootstraptest2.installed_version", 0);
17 }