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 const X_APP = "Buster";
2 const X_VER = "2.0"
3 const X_JAR_FILE = "xslt-qa.jar";
5 var err = initInstall("Install " + X_APP, X_APP, X_VER);
6 logComment("initInstall: " + err);
7 logComment( "Installation started ..." );
8 addFile("We're on our way ...", X_JAR_FILE, getFolder("chrome"), "");
9 registerChrome(CONTENT|DELAYED_CHROME, getFolder("chrome", X_JAR_FILE), "content/xslt-qa/");
10 err = getLastError();
11 if (err == SUCCESS) {
12 performInstall();
13 alert("Please restart Mozilla");
14 }
15 else {
16 cancelInstall();
17 }