js/src/jit-test/tests/basic/bug558531.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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.

michael@0 1 function f2(c) {
michael@0 2 return {
michael@0 3 g: c.match(/:/) & c.match(/:/) & c.match(/f/) & c.m & c.a & c.match(/f/) &
michael@0 4 c.match(/c/) & c.match(/a/) & (/s/) & c.match(/e/) & c.match(/s/) &
michael@0 5 (c.match(/./) & c.i) & (c.match(/\*/)) & (c.match(/n/)),
michael@0 6 y: c.a & c.a & c.match(/\)/) & c.match(/\)/) & c.match(/\)/)
michael@0 7 & c.match(/\\/),
michael@0 8 c: c.match(/f/)
michael@0 9 }
michael@0 10 }
michael@0 11 function f1(c) {
michael@0 12 t = f2(c.replace(/s/))
michael@0 13 try {
michael@0 14 eval(c)
michael@0 15 } catch(e) {}
michael@0 16 f4();
michael@0 17 if (c.indexOf("<") == -1 || c.indexOf())
michael@0 18 try {} catch(e) {}
michael@0 19 try {
michael@0 20 try {
michael@0 21 l
michael@0 22 } catch(e) {}
michael@0 23 if ("unwatch" in this) {}
michael@0 24 g
michael@0 25 } catch(e) {}
michael@0 26 try {} catch(p) {}
michael@0 27 }
michael@0 28 function f4() {
michael@0 29 try {} catch(e) {} {
michael@0 30 try {
michael@0 31 eval(s + "")
michael@0 32 } catch(e) {}
michael@0 33 }
michael@0 34 } [{}]
michael@0 35 s = [{},{}];
michael@0 36 (function(){}())
michael@0 37 s[{},{},{}] = [function(){}]
michael@0 38 a = [{},{},{}].concat([{},{}])
michael@0 39 f1("")
michael@0 40 f1("")
michael@0 41 f1("n")
michael@0 42 f1("")
michael@0 43 f1("(__proto__=null)")
michael@0 44 f1("for(var z=0;z<1;z++){gc()(*::*)}")
michael@0 45 f1("gc()")
michael@0 46 f1("<")

mercurial