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 if CONFIG['JS_SHELL_NAME']:
8 PROGRAM = CONFIG['JS_SHELL_NAME']
10 UNIFIED_SOURCES += [
11 'js.cpp',
12 'jsheaptools.cpp',
13 'jsoptparse.cpp',
14 ]
16 # Building against js_static requires that we declare mfbt sybols "exported"
17 # on its behalf.
18 for var in ('EXPORT_JS_API', 'IMPL_MFBT'):
19 DEFINES[var] = True
21 if CONFIG['_MSC_VER']:
22 # unnecessary PGO for js shell. But gcc cannot turn off pgo because it is
23 # necessary to link PGO lib on gcc when a object/static lib are compiled
24 # for PGO.
25 NO_PGO = True
27 LOCAL_INCLUDES += ['..']
28 GENERATED_INCLUDES += ['..']