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: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
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 | EXPORTS += [ |
michael@0 | 8 | 'nsXPCOM.h', |
michael@0 | 9 | 'nsXPCOMCID.h', |
michael@0 | 10 | 'nsXPCOMCIDInternal.h', |
michael@0 | 11 | 'nsXREAppData.h', |
michael@0 | 12 | 'nsXULAppAPI.h', |
michael@0 | 13 | 'xrecore.h', |
michael@0 | 14 | ] |
michael@0 | 15 | |
michael@0 | 16 | EXPORTS.mozilla += [ |
michael@0 | 17 | 'FileLocation.h', |
michael@0 | 18 | 'IOInterposer.h', |
michael@0 | 19 | 'LateWriteChecks.h', |
michael@0 | 20 | 'Omnijar.h', |
michael@0 | 21 | 'PoisonIOInterposer.h', |
michael@0 | 22 | 'ServiceList.h', |
michael@0 | 23 | 'Services.h', |
michael@0 | 24 | 'XPCOM.h', |
michael@0 | 25 | ] |
michael@0 | 26 | |
michael@0 | 27 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 28 | EXPORTS += ['nsWindowsDllInterceptor.h'] |
michael@0 | 29 | EXPORTS.mozilla += ['perfprobe.h'] |
michael@0 | 30 | SOURCES += [ |
michael@0 | 31 | 'perfprobe.cpp', |
michael@0 | 32 | 'PoisonIOInterposerBase.cpp', |
michael@0 | 33 | 'PoisonIOInterposerWin.cpp', |
michael@0 | 34 | ] |
michael@0 | 35 | elif CONFIG['OS_ARCH'] == 'Darwin': |
michael@0 | 36 | SOURCES += [ |
michael@0 | 37 | 'mach_override.c', |
michael@0 | 38 | 'PoisonIOInterposerBase.cpp', |
michael@0 | 39 | 'PoisonIOInterposerMac.cpp', |
michael@0 | 40 | ] |
michael@0 | 41 | else: |
michael@0 | 42 | SOURCES += ['PoisonIOInterposerStub.cpp'] |
michael@0 | 43 | |
michael@0 | 44 | include('../glue/objs.mozbuild') |
michael@0 | 45 | |
michael@0 | 46 | UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs |
michael@0 | 47 | UNIFIED_SOURCES += xpcom_glue_src_cppsrcs |
michael@0 | 48 | |
michael@0 | 49 | UNIFIED_SOURCES += [ |
michael@0 | 50 | 'FrozenFunctions.cpp', |
michael@0 | 51 | 'IOInterposer.cpp', |
michael@0 | 52 | 'LateWriteChecks.cpp', |
michael@0 | 53 | 'MainThreadIOLogger.cpp', |
michael@0 | 54 | 'nsXPComInit.cpp', |
michael@0 | 55 | 'nsXPCOMStrings.cpp', |
michael@0 | 56 | 'Services.cpp', |
michael@0 | 57 | ] |
michael@0 | 58 | |
michael@0 | 59 | if CONFIG['OS_ARCH'] != 'WINNT': |
michael@0 | 60 | SOURCES += [ |
michael@0 | 61 | 'NSPRInterposer.cpp', |
michael@0 | 62 | ] |
michael@0 | 63 | |
michael@0 | 64 | # FileLocation.cpp and Omnijar.cpp cannot be built in unified mode because they |
michael@0 | 65 | # use plarena.h. |
michael@0 | 66 | SOURCES += [ |
michael@0 | 67 | 'FileLocation.cpp', |
michael@0 | 68 | 'Omnijar.cpp', |
michael@0 | 69 | ] |
michael@0 | 70 | |
michael@0 | 71 | MSVC_ENABLE_PGO = True |
michael@0 | 72 | |
michael@0 | 73 | LIBRARY_NAME = 'xpcom_core' |
michael@0 | 74 | |
michael@0 | 75 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 76 | |
michael@0 | 77 | FINAL_LIBRARY = 'xul' |
michael@0 | 78 | |
michael@0 | 79 | DEFINES['_IMPL_NS_STRINGAPI'] = True |
michael@0 | 80 | DEFINES['OMNIJAR_NAME'] = CONFIG['OMNIJAR_NAME'] |
michael@0 | 81 | |
michael@0 | 82 | if CONFIG['TARGET_XPCOM_ABI']: |
michael@0 | 83 | DEFINES['TARGET_XPCOM_ABI'] = '"%s"' % CONFIG['TARGET_XPCOM_ABI'] |
michael@0 | 84 | |
michael@0 | 85 | if CONFIG['MOZ_OPTIMIZE']: |
michael@0 | 86 | DEFINES['MOZ_OPTIMIZE'] = True |
michael@0 | 87 | |
michael@0 | 88 | GENERATED_INCLUDES += ['..'] |
michael@0 | 89 | LOCAL_INCLUDES += [ |
michael@0 | 90 | '../base', |
michael@0 | 91 | '../components', |
michael@0 | 92 | '../ds', |
michael@0 | 93 | '../glue', |
michael@0 | 94 | '../io', |
michael@0 | 95 | '../reflect/xptinfo/src', |
michael@0 | 96 | '../threads', |
michael@0 | 97 | '/chrome/src', |
michael@0 | 98 | '/docshell/base', |
michael@0 | 99 | ] |
michael@0 | 100 | |
michael@0 | 101 | if CONFIG['MOZ_VPX']: |
michael@0 | 102 | LOCAL_INCLUDES += [ |
michael@0 | 103 | '/media/libvpx', |
michael@0 | 104 | ] |