1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
"use strict";
module.exports = {
globals: {
// These are defined in the WebExtension script scopes by ExtensionCommon.jsm.
// From toolkit/components/extensions/.eslintrc.js.
ExtensionAPI: true,
ExtensionAPIPersistent: true,
ExtensionCommon: true,
ExtensionUtils: true,
extensions: true,
global: true,
Services: true,
// From toolkit/components/extensions/parent/.eslintrc.js.
CONTAINER_STORE: true,
DEFAULT_STORE: true,
EventEmitter: true,
EventManager: true,
InputEventManager: true,
PRIVATE_STORE: true,
TabBase: true,
TabManagerBase: true,
TabTrackerBase: true,
WindowBase: true,
WindowManagerBase: true,
WindowTrackerBase: true,
getContainerForCookieStoreId: true,
getUserContextIdForCookieStoreId: true,
getCookieStoreIdForOriginAttributes: true,
getCookieStoreIdForContainer: true,
getCookieStoreIdForTab: true,
isContainerCookieStoreId: true,
isDefaultCookieStoreId: true,
isPrivateCookieStoreId: true,
isValidCookieStoreId: true,
// These are defined in ext-mail.js.
ADDRESS_BOOK_WINDOW_URI: true,
COMPOSE_WINDOW_URI: true,
MAIN_WINDOW_URI: true,
MESSAGE_WINDOW_URI: true,
MESSAGE_PROTOCOLS: true,
NOTIFICATION_COLLAPSE_TIME: true,
ExtensionError: true,
Tab: true,
TabmailTab: true,
Window: true,
TabmailWindow: true,
clickModifiersFromEvent: true,
convertFolder: true,
convertAccount: true,
traverseSubfolders: true,
convertMailIdentity: true,
convertMessage: true,
folderPathToURI: true,
folderURIToPath: true,
getNormalWindowReady: true,
getRealFileForFile: true,
getTabBrowser: true,
getTabTabmail: true,
getTabWindow: true,
messageListTracker: true,
messageTracker: true,
nsDummyMsgHeader: true,
spaceTracker: true,
tabGetSender: true,
tabTracker: true,
windowTracker: true,
// ext-browserAction.js
browserActionFor: true,
},
rules: {
// From toolkit/components/extensions/.eslintrc.js.
// Disable reject-importGlobalProperties because we don't want to include
// these in the sandbox directly as that would potentially mean the
// imported properties would be instantiated up-front rather than lazily.
"mozilla/reject-importGlobalProperties": "off",
},
};
|