js/src/jit-test/tests/auto-regress/bug783421.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.

     1 // Binary: cache/js-dbg-64-50e4ff05741e-linux
     2 // Flags: -m -n -a
     3 //
     4 gc()
     5 var p = n
     6 function m() {
     7   return function(f, code, t) {
     8 	try {
     9 	  evalcx(code, newGlobal())
    10 	} catch (e) {}
    11   }
    12 }
    13 function n() {
    14 	f()
    15 }
    16 function h(code) {
    17 	f = Function(code)
    18 	p(f, code, true)
    19 }
    20 h("\
    21   p=m();\
    22   gcPreserveCode();\
    23   gcslice(7);\
    24 ")
    25 h("\"\"")
    26 h("")
    27 h("gc()")
    28 h("")
    29 h("")
    30 h("gczeal(4,2)")

mercurial