-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlegacyHelper.json
225 lines (222 loc) · 8.55 KB
/
legacyHelper.json
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
[
{
"namespace": "legacy",
"functions": [
{
"name": "loadFrameScript",
"type": "function",
"async": true,
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the script to load"
},
{
"name": "allowDelayedLoad",
"type": "boolean",
"description": "If true, also load into any new frames opened later"
},
{
"name": "runInGlobalScope",
"type": "boolean",
"optional": true,
"default": false,
"description": "Share frame script scope with other frame scripts that have this flag set true"
}
]
},
{
"name": "removeDelayedFrameScript",
"type": "function",
"async": true,
"parameters": [
{
"name": "scriptFile",
"type": "string",
"description": "The relative path to the script to unload"
}
]
},
{
"name": "addUnloadMessage",
"type": "function",
"description": "Adds a message which will be sent to all framescripts when the extension is unloaded",
"async": true,
"parameters": [
{
"name": "messageName",
"type": "string"
},
{
"name": "data",
"type": "boolean",
"optional": true
}
]
},
{
"name": "broadcastAsyncMessage",
"type": "function",
"description": "Sends a message to all loaded frame scripts",
"async": true,
"parameters": [
{
"name": "messageName",
"type": "string"
},
{
"name": "data",
"type": "any",
"optional": true,
"description": "An object that can be serialized to JSON, passed as a parameter to the function called."
}
]
},
{
"name": "loadBootstrapScript",
"type": "function",
"async": true,
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the bootstrap script to load. startup(data, reason, messageSender) will be called when the script is loaded, and shutdown(data, reason) when the addon is unloaded or disabled. messageSender can be used to send a message which will be raised as the bootstrapScriptMessage event. Note: install and uninstall methods are not called."
}
]
},
{
"name": "callFunctionInBootstrapScript",
"type": "function",
"async": true,
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the bootstrap script to load in which to call the function. It must have already been loaded by loadBootstrapScript."
},
{
"name": "functionName",
"type": "string"
},
{
"name": "data",
"type": "any",
"optional": true,
"description": "An object that can be serialized to JSON, passed as a parameter to the function called."
}
]
},
{
"name": "loadStyleSheet",
"type": "function",
"async": true,
"description": "Loads and registers a style sheet. It will be automatically unloaded when the extension is unloaded.",
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the style sheet to load and register."
},
{
"name": "type",
"type": "integer",
"description": "The type of style sheet (AGENT_SHEET, USER_SHEET or AUTHOR_SHEET)"
}
]
},
{
"name": "isStyleSheetLoaded",
"type": "function",
"async": true,
"description": "Loads and registers a style sheet",
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the style sheet to load and register."
},
{
"name": "type",
"type": "integer",
"description": "The type of style sheet (AGENT_SHEET, USER_SHEET or AUTHOR_SHEET)"
}
]
},
{
"name": "unloadStyleSheet",
"type": "function",
"async": true,
"description": "Unloads and unregisters a style sheet",
"parameters": [
{
"name": "uri",
"type": "string",
"description": "The uri of the style sheet to unload."
},
{
"name": "type",
"type": "integer",
"description": "The type of style sheet (AGENT_SHEET, USER_SHEET or AUTHOR_SHEET)"
}
]
},
{
"name": "registerChromeOverride",
"type": "function",
"async": true,
"description": "Registers a folder path (relative to the addon root) as the root of a chrome override. May not contain .. or start with a \\",
"parameters": [
{
"name": "path",
"type": "string",
"description": "The path to the chrome folder."
},
{
"name": "reloadSession",
"type": "boolean",
"optional": true,
"default": false,
"description": "If true, all open windows will be reloaded in order to apply the changes."
}
]
},
{
"name": "workaround1406055",
"type": "function",
"async": true,
"parameters": []
}
],
"events": [
{
"name": "onBootstrapScriptMessage",
"type": "function",
"description": "Event raised when a script loaded with loadBootstrapScript uses the messageSender to send a message",
"parameters": [
{
"name": "message",
"type": "any"
}
],
"returns": {
"type": "any"
}
}
],
"properties": {
"AGENT_SHEET": {
"value": 0,
"description": "Used with loadStyleSheet, isStyleSheetLoaded and unloadStyleSheet functions"
},
"USER_SHEET": {
"value": 1,
"description": "Used with loadStyleSheet, isStyleSheetLoaded and unloadStyleSheet functions"
},
"AUTHOR_SHEET": {
"value": 2,
"description": "Used with loadStyleSheet, isStyleSheetLoaded and unloadStyleSheet functions"
}
}
}
]