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.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
9 if not CONFIG['MOZ_JSDOWNLOADS']:
10 XPCSHELL_TESTS_MANIFESTS += ['test/schema_migration/xpcshell.ini']
11 BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini']
12 MOCHITEST_MANIFESTS += ['test/browser/mochitest.ini']
14 XPIDL_SOURCES += [
15 'nsIApplicationReputation.idl',
16 'nsIDownload.idl',
17 'nsIDownloadManager.idl',
18 'nsIDownloadManagerUI.idl',
19 'nsIDownloadProgressListener.idl',
20 ]
22 XPIDL_MODULE = 'downloads'
24 UNIFIED_SOURCES += [
25 'nsDownloadManager.cpp',
26 ]
28 # SQLFunctions.cpp cannot be built in unified mode because of Windows headers.
29 SOURCES += [
30 'SQLFunctions.cpp',
31 ]
33 if CONFIG['MOZ_URL_CLASSIFIER']:
34 UNIFIED_SOURCES += [
35 'ApplicationReputation.cpp',
36 'csd.pb.cc'
37 ]
39 if CONFIG['OS_ARCH'] == 'WINNT':
40 # Can't build unified because we need CreateEvent which some IPC code
41 # included in LoadContext ends up undefining.
42 SOURCES += [
43 'nsDownloadScanner.cpp',
44 ]
46 # XXX - Until Suite builds off XULRunner we can't guarantee our implementation
47 # of nsIDownloadManagerUI overrides toolkit's.
48 if not CONFIG['MOZ_SUITE']:
49 EXTRA_COMPONENTS += [
50 'nsDownloadManagerUI.js',
51 'nsDownloadManagerUI.manifest',
52 ]
54 FAIL_ON_WARNINGS = True
56 FINAL_LIBRARY = 'toolkitcomps'
58 LOCAL_INCLUDES += [
59 '../protobuf',
60 '/ipc/chromium/src'
61 ]
63 DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True