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.
2 var config = getBuildConfiguration();
4 // FIXME: ASAN and debug builds run this too slowly for now. Re-enable
5 // after bug 919948 lands.
6 if (!config.debug && !config.asan) {
7 let a = [];
8 a.length = getMaxArgs() + 1;
10 let f = function() {
11 };
13 try {
14 f(...a);
15 } catch (e) {
16 assertEq(e.message, "too many function arguments");
17 }
19 try {
20 new f(...a);
21 } catch (e) {
22 assertEq(e.message, "too many constructor arguments");
23 }
25 try {
26 eval(...a);
27 } catch (e) {
28 assertEq(e.message, "too many function arguments");
29 }
30 }