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("bootstraptest.installed_version", 3);
5 Services.prefs.setIntPref("bootstraptest.install_reason", reason);
6 }
8 function startup(data, reason) {
9 Services.prefs.setIntPref("bootstraptest.active_version", 3);
10 Services.prefs.setIntPref("bootstraptest.startup_reason", reason);
11 }
13 function shutdown(data, reason) {
14 Services.prefs.setIntPref("bootstraptest.active_version", 0);
15 Services.prefs.setIntPref("bootstraptest.shutdown_reason", reason);
16 }
18 function uninstall(data, reason) {
19 Services.prefs.setIntPref("bootstraptest.installed_version", 0);
20 Services.prefs.setIntPref("bootstraptest.uninstall_reason", reason);
21 }