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 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
4 MARIONETTE_TIMEOUT = 60000;
5 MARIONETTE_HEAD_JS = 'head.js';
7 function testConferenceTwoAndHangupOne() {
8 log('= testConferenceTwoAndHangupOne =');
10 let outCall;
11 let inCall;
12 let outNumber = "5555550101";
13 let inNumber = "5555550201";
14 let inInfo = gInCallStrPool(inNumber);
16 return Promise.resolve()
17 .then(() => gSetupConferenceTwoCalls(outNumber, inNumber))
18 .then(calls => {
19 [outCall, inCall] = calls;
20 })
21 .then(() => gHangUpCallInConference(outCall, [inCall], [], function() {
22 gCheckState(inCall, [inCall], '', []);
23 }))
24 .then(() => gCheckAll(inCall, [inCall], '', [], [inInfo.active]))
25 .then(() => gRemoteHangUpCalls([inCall]));
26 }
28 // Start the test
29 startTest(function() {
30 testConferenceTwoAndHangupOne()
31 .then(null, error => {
32 ok(false, 'promise rejects during test.');
33 })
34 .then(finish);
35 });