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 "use strict";
3 assertEq(parseInt("08"), 8);
4 assertEq(parseInt("09"), 9);
5 assertEq(parseInt("014"), 14);
6 assertEq(parseInt("0xA"), 10);
7 assertEq(parseInt("00123"), 123);
9 for (var i = 0; i < 5; i++)
10 {
11 assertEq(parseInt("08"), 8);
12 assertEq(parseInt("09"), 9);
13 assertEq(parseInt("014"), 14);
14 assertEq(parseInt("0xA"), 10);
15 assertEq(parseInt("00123"), 123);
16 }