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 | COMPONENT(MEMORY, nsMemoryImpl::Create) |
michael@0 | 2 | COMPONENT(DEBUG, nsDebugImpl::Create) |
michael@0 | 3 | COMPONENT(ERRORSERVICE, nsErrorService::Create) |
michael@0 | 4 | |
michael@0 | 5 | COMPONENT(CATEGORYMANAGER, nsCategoryManager::Create) |
michael@0 | 6 | |
michael@0 | 7 | COMPONENT(SCRIPTABLEINPUTSTREAM, nsScriptableInputStream::Create) |
michael@0 | 8 | COMPONENT(BINARYINPUTSTREAM, nsBinaryInputStreamConstructor) |
michael@0 | 9 | COMPONENT(BINARYOUTPUTSTREAM, nsBinaryOutputStreamConstructor) |
michael@0 | 10 | COMPONENT(STORAGESTREAM, nsStorageStreamConstructor) |
michael@0 | 11 | COMPONENT(VERSIONCOMPARATOR, nsVersionComparatorImplConstructor) |
michael@0 | 12 | COMPONENT(SCRIPTABLEBASE64ENCODER, nsScriptableBase64EncoderConstructor) |
michael@0 | 13 | COMPONENT(PIPE, nsPipeConstructor) |
michael@0 | 14 | |
michael@0 | 15 | COMPONENT(PROPERTIES, nsPropertiesConstructor) |
michael@0 | 16 | |
michael@0 | 17 | COMPONENT(PERSISTENTPROPERTIES, nsPersistentProperties::Create) |
michael@0 | 18 | |
michael@0 | 19 | COMPONENT(SUPPORTSARRAY, nsSupportsArray::Create) |
michael@0 | 20 | COMPONENT(ARRAY, nsArray::XPCOMConstructor) |
michael@0 | 21 | COMPONENT(CONSOLESERVICE, nsConsoleServiceConstructor) |
michael@0 | 22 | COMPONENT(ATOMSERVICE, nsAtomServiceConstructor) |
michael@0 | 23 | COMPONENT(OBSERVERSERVICE, nsObserverService::Create) |
michael@0 | 24 | #ifdef MOZ_VISUAL_EVENT_TRACER |
michael@0 | 25 | COMPONENT(VISUALEVENTTRACER, VisualEventTracerConstructor) |
michael@0 | 26 | #endif |
michael@0 | 27 | |
michael@0 | 28 | COMPONENT(TIMER, nsTimerImplConstructor) |
michael@0 | 29 | |
michael@0 | 30 | #define COMPONENT_SUPPORTS(TYPE, Type) \ |
michael@0 | 31 | COMPONENT(SUPPORTS_##TYPE, nsSupports##Type##ImplConstructor) |
michael@0 | 32 | |
michael@0 | 33 | COMPONENT_SUPPORTS(ID, ID) |
michael@0 | 34 | COMPONENT_SUPPORTS(STRING, String) |
michael@0 | 35 | COMPONENT_SUPPORTS(CSTRING, CString) |
michael@0 | 36 | COMPONENT_SUPPORTS(PRBOOL, PRBool) |
michael@0 | 37 | COMPONENT_SUPPORTS(PRUINT8, PRUint8) |
michael@0 | 38 | COMPONENT_SUPPORTS(PRUINT16, PRUint16) |
michael@0 | 39 | COMPONENT_SUPPORTS(PRUINT32, PRUint32) |
michael@0 | 40 | COMPONENT_SUPPORTS(PRUINT64, PRUint64) |
michael@0 | 41 | COMPONENT_SUPPORTS(PRTIME, PRTime) |
michael@0 | 42 | COMPONENT_SUPPORTS(CHAR, Char) |
michael@0 | 43 | COMPONENT_SUPPORTS(PRINT16, PRInt16) |
michael@0 | 44 | COMPONENT_SUPPORTS(PRINT32, PRInt32) |
michael@0 | 45 | COMPONENT_SUPPORTS(PRINT64, PRInt64) |
michael@0 | 46 | COMPONENT_SUPPORTS(FLOAT, Float) |
michael@0 | 47 | COMPONENT_SUPPORTS(DOUBLE, Double) |
michael@0 | 48 | COMPONENT_SUPPORTS(VOID, Void) |
michael@0 | 49 | COMPONENT_SUPPORTS(INTERFACE_POINTER, InterfacePointer) |
michael@0 | 50 | |
michael@0 | 51 | #undef COMPONENT_SUPPORTS |
michael@0 | 52 | COMPONENT(LOCAL_FILE, nsLocalFile::nsLocalFileConstructor) |
michael@0 | 53 | COMPONENT(DIRECTORY_SERVICE, nsDirectoryService::Create) |
michael@0 | 54 | COMPONENT(PROCESS, nsProcessConstructor) |
michael@0 | 55 | COMPONENT(ENVIRONMENT, nsEnvironment::Create) |
michael@0 | 56 | |
michael@0 | 57 | COMPONENT(THREADMANAGER, nsThreadManagerGetSingleton) |
michael@0 | 58 | COMPONENT(THREADPOOL, nsThreadPoolConstructor) |
michael@0 | 59 | |
michael@0 | 60 | COMPONENT(STRINGINPUTSTREAM, nsStringInputStreamConstructor) |
michael@0 | 61 | COMPONENT(MULTIPLEXINPUTSTREAM, nsMultiplexInputStreamConstructor) |
michael@0 | 62 | |
michael@0 | 63 | COMPONENT(VARIANT, nsVariantConstructor) |
michael@0 | 64 | COMPONENT(INTERFACEINFOMANAGER_SERVICE, nsXPTIInterfaceInfoManagerGetSingleton) |
michael@0 | 65 | |
michael@0 | 66 | COMPONENT(HASH_PROPERTY_BAG, nsHashPropertyBagConstructor) |
michael@0 | 67 | |
michael@0 | 68 | COMPONENT(UUID_GENERATOR, nsUUIDGeneratorConstructor) |
michael@0 | 69 | |
michael@0 | 70 | #if defined(XP_WIN) |
michael@0 | 71 | COMPONENT(WINDOWSREGKEY, nsWindowsRegKeyConstructor) |
michael@0 | 72 | #endif |
michael@0 | 73 | |
michael@0 | 74 | #if defined(MOZ_WIDGET_COCOA) |
michael@0 | 75 | COMPONENT(MACUTILSIMPL, nsMacUtilsImplConstructor) |
michael@0 | 76 | #endif |
michael@0 | 77 | |
michael@0 | 78 | COMPONENT(SYSTEMINFO, nsSystemInfoConstructor) |
michael@0 | 79 | COMPONENT(MEMORY_REPORTER_MANAGER, nsMemoryReporterManagerConstructor) |
michael@0 | 80 | COMPONENT(MEMORY_INFO_DUMPER, nsMemoryInfoDumperConstructor) |
michael@0 | 81 | COMPONENT(IOUTIL, nsIOUtilConstructor) |
michael@0 | 82 | COMPONENT(CYCLE_COLLECTOR_LOGGER, nsCycleCollectorLoggerConstructor) |
michael@0 | 83 | COMPONENT(MESSAGE_LOOP, nsMessageLoopConstructor) |
michael@0 | 84 | COMPONENT(STATUS_REPORTER_MANAGER, nsStatusReporterManagerConstructor) |