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.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | * http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 3 | */ |
michael@0 | 4 | |
michael@0 | 5 | /* Bootstrap the tests using the service by installing our own version of the service */ |
michael@0 | 6 | |
michael@0 | 7 | function run_test() { |
michael@0 | 8 | if (!shouldRunServiceTest(true)) { |
michael@0 | 9 | return; |
michael@0 | 10 | } |
michael@0 | 11 | |
michael@0 | 12 | setupTestCommon(); |
michael@0 | 13 | // We don't actually care if the MAR has any data, we only care about the |
michael@0 | 14 | // application return code and update.status result. |
michael@0 | 15 | gTestFiles = gTestFilesCommon; |
michael@0 | 16 | gTestDirs = []; |
michael@0 | 17 | setupUpdaterTest(FILE_COMPLETE_MAR, false, false); |
michael@0 | 18 | |
michael@0 | 19 | setupAppFilesAsync(); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | function setupAppFilesFinished() { |
michael@0 | 23 | runUpdateUsingService(STATE_PENDING_SVC, STATE_SUCCEEDED, false); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | function checkUpdateFinished() { |
michael@0 | 27 | checkFilesAfterUpdateSuccess(); |
michael@0 | 28 | |
michael@0 | 29 | // We need to check the service log even though this is a bootstrap |
michael@0 | 30 | // because the app bin could be in use by this test by the time the next |
michael@0 | 31 | // test runs. |
michael@0 | 32 | checkCallbackServiceLog(); |
michael@0 | 33 | } |