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 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef Errors_h__ |
michael@0 | 8 | #define Errors_h__ |
michael@0 | 9 | |
michael@0 | 10 | #define OK 0 |
michael@0 | 11 | |
michael@0 | 12 | // Old unused error codes: |
michael@0 | 13 | // #define MEM_ERROR 1 // Replaced with errors 10-16 (inclusive) |
michael@0 | 14 | // #define IO_ERROR 2 // Use READ_ERROR or WRITE_ERROR instead |
michael@0 | 15 | |
michael@0 | 16 | // Error codes 3-16 are for general update problems. |
michael@0 | 17 | #define USAGE_ERROR 3 |
michael@0 | 18 | #define CRC_ERROR 4 |
michael@0 | 19 | #define PARSE_ERROR 5 |
michael@0 | 20 | #define READ_ERROR 6 |
michael@0 | 21 | #define WRITE_ERROR 7 |
michael@0 | 22 | // #define UNEXPECTED_ERROR 8 // Replaced with errors 38-42 |
michael@0 | 23 | #define ELEVATION_CANCELED 9 |
michael@0 | 24 | #define READ_STRINGS_MEM_ERROR 10 |
michael@0 | 25 | #define ARCHIVE_READER_MEM_ERROR 11 |
michael@0 | 26 | #define BSPATCH_MEM_ERROR 12 |
michael@0 | 27 | #define UPDATER_MEM_ERROR 13 |
michael@0 | 28 | #define UPDATER_QUOTED_PATH_MEM_ERROR 14 |
michael@0 | 29 | #define BAD_ACTION_ERROR 15 |
michael@0 | 30 | #define STRING_CONVERSION_ERROR 16 |
michael@0 | 31 | |
michael@0 | 32 | // Error codes 17-23 are related to security tasks for MAR |
michael@0 | 33 | // signing and MAR protection. |
michael@0 | 34 | #define CERT_LOAD_ERROR 17 |
michael@0 | 35 | #define CERT_HANDLING_ERROR 18 |
michael@0 | 36 | #define CERT_VERIFY_ERROR 19 |
michael@0 | 37 | #define ARCHIVE_NOT_OPEN 20 |
michael@0 | 38 | #define COULD_NOT_READ_PRODUCT_INFO_BLOCK_ERROR 21 |
michael@0 | 39 | #define MAR_CHANNEL_MISMATCH_ERROR 22 |
michael@0 | 40 | #define VERSION_DOWNGRADE_ERROR 23 |
michael@0 | 41 | |
michael@0 | 42 | // Error codes 24-34 are related to the maintenance service |
michael@0 | 43 | // and so are Windows only |
michael@0 | 44 | #define SERVICE_UPDATER_COULD_NOT_BE_STARTED 24 |
michael@0 | 45 | #define SERVICE_NOT_ENOUGH_COMMAND_LINE_ARGS 25 |
michael@0 | 46 | #define SERVICE_UPDATER_SIGN_ERROR 26 |
michael@0 | 47 | #define SERVICE_UPDATER_COMPARE_ERROR 27 |
michael@0 | 48 | #define SERVICE_UPDATER_IDENTITY_ERROR 28 |
michael@0 | 49 | #define SERVICE_STILL_APPLYING_ON_SUCCESS 29 |
michael@0 | 50 | #define SERVICE_STILL_APPLYING_ON_FAILURE 30 |
michael@0 | 51 | #define SERVICE_UPDATER_NOT_FIXED_DRIVE 31 |
michael@0 | 52 | #define SERVICE_COULD_NOT_LOCK_UPDATER 32 |
michael@0 | 53 | #define SERVICE_INSTALLDIR_ERROR 33 |
michael@0 | 54 | #define SERVICE_COULD_NOT_COPY_UPDATER 49 |
michael@0 | 55 | |
michael@0 | 56 | #define NO_INSTALLDIR_ERROR 34 |
michael@0 | 57 | #define WRITE_ERROR_ACCESS_DENIED 35 |
michael@0 | 58 | // #define WRITE_ERROR_SHARING_VIOLATION 36 // Replaced with errors 46-48 |
michael@0 | 59 | #define WRITE_ERROR_CALLBACK_APP 37 |
michael@0 | 60 | #define INVALID_UPDATER_STATUS_CODE 38 |
michael@0 | 61 | #define UNEXPECTED_BZIP_ERROR 39 |
michael@0 | 62 | #define UNEXPECTED_MAR_ERROR 40 |
michael@0 | 63 | #define UNEXPECTED_BSPATCH_ERROR 41 |
michael@0 | 64 | #define UNEXPECTED_FILE_OPERATION_ERROR 42 |
michael@0 | 65 | #define FILESYSTEM_MOUNT_READWRITE_ERROR 43 |
michael@0 | 66 | #define FOTA_GENERAL_ERROR 44 |
michael@0 | 67 | #define FOTA_UNKNOWN_ERROR 45 |
michael@0 | 68 | #define WRITE_ERROR_SHARING_VIOLATION_SIGNALED 46 |
michael@0 | 69 | #define WRITE_ERROR_SHARING_VIOLATION_NOPROCESSFORPID 47 |
michael@0 | 70 | #define WRITE_ERROR_SHARING_VIOLATION_NOPID 48 |
michael@0 | 71 | |
michael@0 | 72 | // The following error codes are only used by updater.exe |
michael@0 | 73 | // when a fallback key exists and XPCShell tests are being run. |
michael@0 | 74 | #define FALLBACKKEY_UNKNOWN_ERROR 100 |
michael@0 | 75 | #define FALLBACKKEY_REGPATH_ERROR 101 |
michael@0 | 76 | #define FALLBACKKEY_NOKEY_ERROR 102 |
michael@0 | 77 | #define FALLBACKKEY_SERVICE_NO_STOP_ERROR 103 |
michael@0 | 78 | #define FALLBACKKEY_LAUNCH_ERROR 104 |
michael@0 | 79 | |
michael@0 | 80 | #endif // Errors_h__ |