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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | BOOL LaunchWinPostProcess(const WCHAR *installationDir, |
michael@0 | 6 | const WCHAR *updateInfoDir, |
michael@0 | 7 | bool forceSync, |
michael@0 | 8 | HANDLE userToken); |
michael@0 | 9 | BOOL StartServiceUpdate(LPCWSTR installDir); |
michael@0 | 10 | BOOL GetUpdateDirectoryPath(LPWSTR path); |
michael@0 | 11 | DWORD LaunchServiceSoftwareUpdateCommand(int argc, LPCWSTR *argv); |
michael@0 | 12 | BOOL WriteStatusFailure(LPCWSTR updateDirPath, int errorCode); |
michael@0 | 13 | BOOL WriteStatusPending(LPCWSTR updateDirPath); |
michael@0 | 14 | DWORD WaitForServiceStop(LPCWSTR serviceName, DWORD maxWaitSeconds); |
michael@0 | 15 | DWORD WaitForProcessExit(LPCWSTR filename, DWORD maxSeconds); |
michael@0 | 16 | BOOL DoesFallbackKeyExist(); |
michael@0 | 17 | BOOL IsLocalFile(LPCWSTR file, BOOL &isLocal); |
michael@0 | 18 | DWORD StartServiceCommand(int argc, LPCWSTR* argv); |
michael@0 | 19 | BOOL IsUnpromptedElevation(BOOL &isUnpromptedElevation); |
michael@0 | 20 | |
michael@0 | 21 | #define SVC_NAME L"MozillaMaintenance" |
michael@0 | 22 | |
michael@0 | 23 | #define BASE_SERVICE_REG_KEY \ |
michael@0 | 24 | L"SOFTWARE\\Mozilla\\MaintenanceService" |
michael@0 | 25 | |
michael@0 | 26 | // The test only fallback key, as its name implies, is only present on machines |
michael@0 | 27 | // that will use automated tests. Since automated tests always run from a |
michael@0 | 28 | // different directory for each test, the presence of this key bypasses the |
michael@0 | 29 | // "This is a valid installation directory" check. This key also stores |
michael@0 | 30 | // the allowed name and issuer for cert checks so that the cert check |
michael@0 | 31 | // code can still be run unchanged. |
michael@0 | 32 | #define TEST_ONLY_FALLBACK_KEY_PATH \ |
michael@0 | 33 | BASE_SERVICE_REG_KEY L"\\3932ecacee736d366d6436db0f55bce4" |
michael@0 | 34 | |
michael@0 | 35 | #ifdef MOZ_METRO |
michael@0 | 36 | bool GetDefaultBrowserAppModelID(WCHAR* aIDBuffer, long aCharLength); |
michael@0 | 37 | HRESULT LaunchDefaultMetroBrowser(); |
michael@0 | 38 | #endif |
michael@0 | 39 |