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 // |jit-test| error:TypeError
3 // Binary: cache/js-dbg-32-7504904b5f8f-linux
4 // Flags: -j
5 //
6 Object.extend = function(destination, source) {
7 for (var property in source)
8 destination[property] = source[property]
9 }
10 Object.extend(Function.prototype, {
11 curry: function() {
12 var __method = this,
13 args = $A(arguments)
14 return function() {
15 return __method(
16 arguments)
17 }
18 },
19 wrap: function(wrapper) {
20 return function() { ([](
21 $A(arguments)))
22 }
23 }
24 })
25 function $A(iterable) {
26 var length = iterable.length
27 while (length--);
28 }
29 var ga = {
30 c: 3,
31 d: 4
32 }
33 ga.
34 __defineGetter__("", /x/.test.wrap("").curry(true, ""))
35 for (var p in ga) {
36 ga[p]
37 }