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 // Error().stack (ScriptFrameIter) should see through JS_SaveFrameChain.
2 function gamma() {
3 stack = Error().stack;
4 }
5 function beta() {
6 evaluate("gamma()", {saveFrameChain: true});
7 }
8 function alpha() {
9 beta();
10 }
11 alpha();
13 assertEq(/alpha/.test(stack), true);
14 assertEq(/beta/.test(stack), true);
15 assertEq(/gamma/.test(stack), true);