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 /*
2 * Bug 800407 - Functions defined with Function construcor
3 * do have strict mode when JSOPTION_STRICT_MODE is on.
4 */
6 options("strict_mode");
7 function testRunOptionStrictMode(str, arg, result) {
8 var strict_inner = new Function('return typeof this == "undefined";');
9 return strict_inner;
10 }
11 assertEq(eval(uneval(testRunOptionStrictMode()))(), true);
13 if (typeof decompileBody !== "undefined") {
14 assertEq(decompileBody(new Function('x', 'return x*2;')).contains('\n"use strict"'), true);
15 }
17 reportCompare(true, true);