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 addEventListener("error", function(e) {
2 var obj = {};
3 for (var prop of ["message", "filename", "lineno"]) {
4 obj[prop] = e[prop]
5 }
6 obj.type = "event";
7 postMessage(obj);
8 });
9 onerror = function(message, filename, lineno) {
10 var obj = { message: message, filename: filename, lineno: lineno,
11 type: "callback" }
12 postMessage(obj);
13 return false;
14 }
15 throw new Error("workerhello");