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 -*-
2 This Source Code Form is subject to the terms of the Mozilla Public
3 License, v. 2.0. If a copy of the MPL was not distributed with this
4 file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 The name of the event which real interface should have nsIDOM-prefix,
7 and should be in nsIDOM<name>.idl file and which should have
8 <name>Init dictionary for the event constructor. """
10 simple_events = [
11 'ProgressEvent',
12 'StorageEvent',
13 'MozSettingsEvent',
14 'CustomEvent',
15 'PageTransitionEvent',
16 'DOMTransactionEvent',
17 'PopStateEvent',
18 'HashChangeEvent',
19 'CloseEvent',
20 'DeviceOrientationEvent',
21 'MozApplicationEvent',
22 'SmartCardEvent',
23 'StyleRuleChangeEvent',
24 'StyleSheetChangeEvent',
25 'StyleSheetApplicableStateChangeEvent',
26 #ifdef MOZ_WIDGET_GONK
27 'MozWifiP2pStatusChangeEvent',
28 'MozWifiStatusChangeEvent',
29 'MozWifiConnectionInfoEvent',
30 #endif
31 #ifdef MOZ_B2G_RIL
32 'MozCellBroadcastEvent',
33 'MozVoicemailEvent',
34 #endif
35 'ElementReplaceEvent',
36 'MozSmsEvent',
37 'MozMmsEvent',
38 #ifdef MOZ_WEBSPEECH
39 'SpeechSynthesisEvent',
40 #endif
41 'DeviceStorageChangeEvent',
42 'PopupBlockedEvent',
43 'RecordErrorEvent',
44 #ifdef MOZ_WEBSPEECH
45 'SpeechRecognitionEvent',
46 #endif
47 ]
49 """ include file names """
50 special_includes = [
51 'nsContentUtils.h',
52 'nsIDOMApplicationRegistry.h',
53 'nsIDOMFile.h'
54 ]
56 """ name of the type to not include using #include "typename.h" """
57 exclude_automatic_type_include = [
58 'nsISupports',
59 'mozIDOMApplication',
60 'nsIDOMBlob'
61 ]
63 """ Map xpidl interface names to implementation classes. The third column is the canonical interface. """
64 xpidl_to_native = [
65 ['nsIDOMDocument', 'nsIDocument', 'nsIDocument'],
66 ['nsIDOMElement', 'mozilla::dom::Element', 'mozilla::dom::Element'],
67 ['nsIDOMCSSStyleSheet', 'nsCSSStyleSheet', 'nsIStyleSheet'],
68 ['nsIDOMWindow', 'nsGlobalWindow', 'nsIDOMEventTarget']
69 ]