js/src/jit-test/tests/auto-regress/bug593580.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-60af58b42567-linux
     2 // Flags:
     3 //
     4 realEval = eval
     5 f = eval("(function(){for(let x in[\
     6          __defineGetter__(\"\",function(){})\
     7          ,__defineGetter__(\"\
     8          functional\
     9          \",Math.pow)\
    10          ]){\
    11          (__defineSetter__(\"\",function(){}))\
    12          ()\
    13          }})")
    14 try {
    15     f()
    16 } catch (r) {
    17     delete this.eval
    18     delete this.Math
    19     eval = realEval
    20     e = this.toSource
    21 }
    22 f = eval("(function(){(__defineSetter__(\"\
    23          functional\
    24          \",(function(){return{t:function(){}}})))()})")
    25 try {
    26     f()
    27 } catch (r) {
    28     eval()
    29 }

mercurial