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 try{} catch (x) {}
3 var callStack = [];
4 function currentFunc() {
5 return callStack[0];
6 }
7 function reportFailure () {
8 var funcName = currentFunc();
9 // play with the result to cause a SEGV.
10 var prefix = (funcName) ? funcName : "";
11 // Use OSR to compile the function at the end of the first run.
12 for (var i=0; i < 50; i++) ;
13 }
15 callStack[0] = 'test';
16 // Run and compile with a string as result of currentFunc.
17 reportFailure();
18 callStack[0] = undefined;
19 // Use previously compiled code with the string assumption.
20 reportFailure();