Source code

Revision control

Other Tools

1
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
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/.
5
6
<menugroup id="context-navigation">
7
<menuitem id="context-back"
8
class="menuitem-iconic"
9
tooltiptext="&backButton.tooltip;"
10
aria-label="&backCmd.label;"
11
command="Browser:BackOrBackDuplicate"
12
accesskey="&backCmd.accesskey;"
13
onclick="checkForMiddleClick(this, event);"/>
14
<menuitem id="context-forward"
15
class="menuitem-iconic"
16
tooltiptext="&forwardButton.tooltip;"
17
aria-label="&forwardCmd.label;"
18
command="Browser:ForwardOrForwardDuplicate"
19
accesskey="&forwardCmd.accesskey;"
20
onclick="checkForMiddleClick(this, event);"/>
21
<menuitem id="context-reload"
22
class="menuitem-iconic"
23
tooltip="dynamic-shortcut-tooltip"
24
aria-label="&reloadCmd.label;"
25
command="Browser:ReloadOrDuplicate"
26
accesskey="&reloadCmd.accesskey;"
27
onclick="checkForMiddleClick(this, event);"/>
28
<menuitem id="context-stop"
29
class="menuitem-iconic"
30
tooltip="dynamic-shortcut-tooltip"
31
aria-label="&stopCmd.label;"
32
accesskey="&stopCmd.accesskey;"
33
command="Browser:Stop"/>
34
<menuitem id="context-bookmarkpage"
35
class="menuitem-iconic"
36
aria-label="&bookmarkPageCmd2.label;"
37
accesskey="&bookmarkPageCmd2.accesskey;"
38
oncommand="gContextMenu.bookmarkThisPage();"/>
39
</menugroup>
40
<menuseparator id="context-sep-navigation"/>
41
<menuseparator id="page-menu-separator"/>
42
<menuitem id="spell-no-suggestions"
43
disabled="true"
44
label="&spellNoSuggestions.label;"/>
45
<menuitem id="spell-add-to-dictionary"
46
label="&spellAddToDictionary.label;"
47
accesskey="&spellAddToDictionary.accesskey;"
48
oncommand="InlineSpellCheckerUI.addToDictionary();"/>
49
<menuitem id="spell-undo-add-to-dictionary"
50
label="&spellUndoAddToDictionary.label;"
51
accesskey="&spellUndoAddToDictionary.accesskey;"
52
oncommand="InlineSpellCheckerUI.undoAddToDictionary();" />
53
<menuseparator id="spell-suggestions-separator"/>
54
<menuitem id="context-openlinkincurrent"
55
label="&openLinkCmdInCurrent.label;"
56
accesskey="&openLinkCmdInCurrent.accesskey;"
57
oncommand="gContextMenu.openLinkInCurrent();"/>
58
# label and data-usercontextid are dynamically set.
59
<menuitem id="context-openlinkincontainertab"
60
accesskey="&openLinkCmdInTab.accesskey;"
61
oncommand="gContextMenu.openLinkInTab(event);"/>
62
<menuitem id="context-openlinkintab"
63
label="&openLinkCmdInTab.label;"
64
accesskey="&openLinkCmdInTab.accesskey;"
65
data-usercontextid="0"
66
oncommand="gContextMenu.openLinkInTab(event);"/>
67
68
<menu id="context-openlinkinusercontext-menu"
69
label="&openLinkCmdInContainerTab.label;"
70
accesskey="&openLinkCmdInContainerTab.accesskey;"
71
hidden="true">
72
<menupopup oncommand="gContextMenu.openLinkInTab(event);"
73
onpopupshowing="return gContextMenu.createContainerMenu(event);" />
74
</menu>
75
76
<menuitem id="context-openlink"
77
label="&openLinkCmd.label;"
78
accesskey="&openLinkCmd.accesskey;"
79
oncommand="gContextMenu.openLink();"/>
80
<menuitem id="context-openlinkprivate"
81
label="&openLinkInPrivateWindowCmd.label;"
82
accesskey="&openLinkInPrivateWindowCmd.accesskey;"
83
oncommand="gContextMenu.openLinkInPrivateWindow();"/>
84
<menuseparator id="context-sep-open"/>
85
<menuitem id="context-bookmarklink"
86
label="&bookmarkThisLinkCmd.label;"
87
accesskey="&bookmarkThisLinkCmd.accesskey;"
88
oncommand="gContextMenu.bookmarkLink();"/>
89
<menuitem id="context-savelink"
90
label="&saveLinkCmd.label;"
91
accesskey="&saveLinkCmd.accesskey;"
92
oncommand="gContextMenu.saveLink();"/>
93
<menuitem id="context-savelinktopocket"
94
label="&saveLinkToPocketCmd.label;"
95
accesskey="&saveLinkToPocketCmd.accesskey;"
96
oncommand= "Pocket.savePage(gContextMenu.browser, gContextMenu.linkURL);"/>
97
<menuitem id="context-copyemail"
98
label="&copyEmailCmd.label;"
99
accesskey="&copyEmailCmd.accesskey;"
100
oncommand="gContextMenu.copyEmail();"/>
101
<menuitem id="context-copylink"
102
label="&copyLinkCmd.label;"
103
accesskey="&copyLinkCmd.accesskey;"
104
oncommand="gContextMenu.copyLink();"/>
105
<menuseparator id="context-sep-copylink"/>
106
<menuitem id="context-media-play"
107
label="&mediaPlay.label;"
108
accesskey="&mediaPlay.accesskey;"
109
oncommand="gContextMenu.mediaCommand('play');"/>
110
<menuitem id="context-media-pause"
111
label="&mediaPause.label;"
112
accesskey="&mediaPause.accesskey;"
113
oncommand="gContextMenu.mediaCommand('pause');"/>
114
<menuitem id="context-media-mute"
115
label="&mediaMute.label;"
116
accesskey="&mediaMute.accesskey;"
117
oncommand="gContextMenu.mediaCommand('mute');"/>
118
<menuitem id="context-media-unmute"
119
label="&mediaUnmute.label;"
120
accesskey="&mediaUnmute.accesskey;"
121
oncommand="gContextMenu.mediaCommand('unmute');"/>
122
<menu id="context-media-playbackrate" label="&mediaPlaybackRate2.label;" accesskey="&mediaPlaybackRate2.accesskey;">
123
<menupopup>
124
<menuitem id="context-media-playbackrate-050x"
125
label="&mediaPlaybackRate050x2.label;"
126
accesskey="&mediaPlaybackRate050x2.accesskey;"
127
type="radio"
128
name="playbackrate"
129
oncommand="gContextMenu.mediaCommand('playbackRate', 0.5);"/>
130
<menuitem id="context-media-playbackrate-100x"
131
label="&mediaPlaybackRate100x2.label;"
132
accesskey="&mediaPlaybackRate100x2.accesskey;"
133
type="radio"
134
name="playbackrate"
135
checked="true"
136
oncommand="gContextMenu.mediaCommand('playbackRate', 1.0);"/>
137
<menuitem id="context-media-playbackrate-125x"
138
label="&mediaPlaybackRate125x2.label;"
139
accesskey="&mediaPlaybackRate125x2.accesskey;"
140
type="radio"
141
name="playbackrate"
142
oncommand="gContextMenu.mediaCommand('playbackRate', 1.25);"/>
143
<menuitem id="context-media-playbackrate-150x"
144
label="&mediaPlaybackRate150x2.label;"
145
accesskey="&mediaPlaybackRate150x2.accesskey;"
146
type="radio"
147
name="playbackrate"
148
oncommand="gContextMenu.mediaCommand('playbackRate', 1.5);"/>
149
<menuitem id="context-media-playbackrate-200x"
150
label="&mediaPlaybackRate200x2.label;"
151
accesskey="&mediaPlaybackRate200x2.accesskey;"
152
type="radio"
153
name="playbackrate"
154
oncommand="gContextMenu.mediaCommand('playbackRate', 2.0);"/>
155
</menupopup>
156
</menu>
157
<menuitem id="context-media-loop"
158
label="&mediaLoop.label;"
159
accesskey="&mediaLoop.accesskey;"
160
type="checkbox"
161
oncommand="gContextMenu.mediaCommand('loop');"/>
162
<menuitem id="context-media-showcontrols"
163
label="&mediaShowControls.label;"
164
accesskey="&mediaShowControls.accesskey;"
165
oncommand="gContextMenu.mediaCommand('showcontrols');"/>
166
<menuitem id="context-media-hidecontrols"
167
label="&mediaHideControls.label;"
168
accesskey="&mediaHideControls.accesskey;"
169
oncommand="gContextMenu.mediaCommand('hidecontrols');"/>
170
<menuitem id="context-video-fullscreen"
171
accesskey="&videoFullScreen.accesskey;"
172
label="&videoFullScreen.label;"
173
oncommand="gContextMenu.mediaCommand('fullscreen');"/>
174
<menuitem id="context-leave-dom-fullscreen"
175
accesskey="&leaveDOMFullScreen.accesskey;"
176
label="&leaveDOMFullScreen.label;"
177
oncommand="gContextMenu.leaveDOMFullScreen();"/>
178
<menuitem id="context-video-pictureinpicture"
179
accesskey="&pictureInPicture.accesskey;"
180
label="&pictureInPicture.label;"
181
type="checkbox"
182
oncommand="gContextMenu.mediaCommand('pictureinpicture');"/>
183
<menuseparator id="context-media-sep-commands"/>
184
<menuitem id="context-reloadimage"
185
label="&reloadImageCmd.label;"
186
accesskey="&reloadImageCmd.accesskey;"
187
oncommand="gContextMenu.reloadImage();"/>
188
<menuitem id="context-viewimage"
189
label="&viewImageCmd.label;"
190
accesskey="&viewImageCmd.accesskey;"
191
oncommand="gContextMenu.viewMedia(event);"
192
onclick="checkForMiddleClick(this, event);"/>
193
<menuitem id="context-viewvideo"
194
label="&viewVideoCmd.label;"
195
accesskey="&viewVideoCmd.accesskey;"
196
oncommand="gContextMenu.viewMedia(event);"
197
onclick="checkForMiddleClick(this, event);"/>
198
#ifdef CONTEXT_COPY_IMAGE_CONTENTS
199
<menuitem id="context-copyimage-contents"
200
label="&copyImageContentsCmd.label;"
201
accesskey="&copyImageContentsCmd.accesskey;"
202
oncommand="goDoCommand('cmd_copyImage');"/>
203
#endif
204
<menuitem id="context-copyimage"
205
label="&copyImageCmd.label;"
206
accesskey="&copyImageCmd.accesskey;"
207
oncommand="gContextMenu.copyMediaLocation();"/>
208
<menuitem id="context-copyvideourl"
209
label="&copyVideoURLCmd.label;"
210
accesskey="&copyVideoURLCmd.accesskey;"
211
oncommand="gContextMenu.copyMediaLocation();"/>
212
<menuitem id="context-copyaudiourl"
213
label="&copyAudioURLCmd.label;"
214
accesskey="&copyAudioURLCmd.accesskey;"
215
oncommand="gContextMenu.copyMediaLocation();"/>
216
<menuseparator id="context-sep-copyimage"/>
217
<menuitem id="context-saveimage"
218
label="&saveImageCmd.label;"
219
accesskey="&saveImageCmd.accesskey;"
220
oncommand="gContextMenu.saveMedia();"/>
221
<menuitem id="context-sendimage"
222
label="&emailImageCmd.label;"
223
accesskey="&emailImageCmd.accesskey;"
224
oncommand="gContextMenu.sendMedia();"/>
225
<menuitem id="context-setDesktopBackground"
226
label="&setDesktopBackgroundCmd.label;"
227
accesskey="&setDesktopBackgroundCmd.accesskey;"
228
oncommand="gContextMenu.setDesktopBackground();"/>
229
<menuitem id="context-viewimageinfo"
230
label="&viewImageInfoCmd.label;"
231
accesskey="&viewImageInfoCmd.accesskey;"
232
oncommand="gContextMenu.viewImageInfo();"/>
233
<menuitem id="context-viewimagedesc"
234
label="&viewImageDescCmd.label;"
235
accesskey="&viewImageDescCmd.accesskey;"
236
oncommand="gContextMenu.viewImageDesc(event);"
237
onclick="checkForMiddleClick(this, event);"/>
238
<menuitem id="context-savevideo"
239
label="&saveVideoCmd.label;"
240
accesskey="&saveVideoCmd.accesskey;"
241
oncommand="gContextMenu.saveMedia();"/>
242
<menuitem id="context-saveaudio"
243
label="&saveAudioCmd.label;"
244
accesskey="&saveAudioCmd.accesskey;"
245
oncommand="gContextMenu.saveMedia();"/>
246
<menuitem id="context-video-saveimage"
247
accesskey="&videoSaveImage.accesskey;"
248
label="&videoSaveImage.label;"
249
oncommand="gContextMenu.saveVideoFrameAsImage();"/>
250
<menuitem id="context-sendvideo"
251
label="&emailVideoCmd.label;"
252
accesskey="&emailVideoCmd.accesskey;"
253
oncommand="gContextMenu.sendMedia();"/>
254
<menuitem id="context-sendaudio"
255
label="&emailAudioCmd.label;"
256
accesskey="&emailAudioCmd.accesskey;"
257
oncommand="gContextMenu.sendMedia();"/>
258
<menuitem id="context-ctp-play"
259
label="&playPluginCmd.label;"
260
accesskey="&playPluginCmd.accesskey;"
261
oncommand="gContextMenu.playPlugin();"/>
262
<menuitem id="context-ctp-hide"
263
label="&hidePluginCmd.label;"
264
accesskey="&hidePluginCmd.accesskey;"
265
oncommand="gContextMenu.hidePlugin();"/>
266
<menuseparator id="context-sep-ctp"/>
267
<menuitem id="context-savepage"
268
label="&savePageCmd.label;"
269
accesskey="&savePageCmd.accesskey2;"
270
oncommand="gContextMenu.savePageAs();"/>
271
<menuitem id="context-pocket"
272
label="&saveToPocketCmd.label;"
273
accesskey="&saveToPocketCmd.accesskey;"
274
oncommand="Pocket.savePage(gContextMenu.browser, gContextMenu.browser.currentURI.spec, gContextMenu.browser.contentTitle);"/>
275
<menuseparator id="context-sep-sendpagetodevice" class="sync-ui-item"
276
hidden="true"/>
277
<menu id="context-sendpagetodevice"
278
class="sync-ui-item"
279
label="&sendPageToDevice.label;"
280
accesskey="&sendPageToDevice.accesskey;"
281
hidden="true">
282
<menupopup id="context-sendpagetodevice-popup"
283
onpopupshowing="(() => { gSync.populateSendTabToDevicesMenu(event.target, gBrowser.currentURI.spec, gBrowser.contentTitle); })()"/>
284
</menu>
285
<menuseparator id="context-sep-viewbgimage"/>
286
<menuitem id="context-viewbgimage"
287
label="&viewBGImageCmd.label;"
288
accesskey="&viewBGImageCmd.accesskey;"
289
oncommand="gContextMenu.viewBGImage(event);"
290
onclick="checkForMiddleClick(this, event);"/>
291
<menuitem id="context-undo"
292
label="&undoCmd.label;"
293
accesskey="&undoCmd.accesskey;"
294
command="cmd_undo"/>
295
<menuseparator id="context-sep-undo"/>
296
<menuitem id="context-cut"
297
label="&cutCmd.label;"
298
accesskey="&cutCmd.accesskey;"
299
command="cmd_cut"/>
300
<menuitem id="context-copy"
301
label="&copyCmd.label;"
302
accesskey="&copyCmd.accesskey;"
303
command="cmd_copy"/>
304
<menuitem id="context-paste"
305
label="&pasteCmd.label;"
306
accesskey="&pasteCmd.accesskey;"
307
command="cmd_paste"/>
308
<menuitem id="context-delete"
309
label="&deleteCmd.label;"
310
accesskey="&deleteCmd.accesskey;"
311
command="cmd_delete"/>
312
<menuseparator id="context-sep-paste"/>
313
<menuitem id="context-selectall"
314
label="&selectAllCmd.label;"
315
accesskey="&selectAllCmd.accesskey;"
316
command="cmd_selectAll"/>
317
<menuseparator id="context-sep-selectall"/>
318
<menuitem id="context-keywordfield"
319
label="&keywordfield.label;"
320
accesskey="&keywordfield.accesskey;"
321
oncommand="AddKeywordForSearchField();"/>
322
<menuitem id="context-searchselect"
323
oncommand="BrowserSearch.loadSearchFromContext(this.searchTerms, this.principal, this.csp);"/>
324
<menuseparator id="context-sep-sendlinktodevice" class="sync-ui-item"
325
hidden="true"/>
326
<menu id="context-sendlinktodevice"
327
class="sync-ui-item"
328
label="&sendLinkToDevice.label;"
329
accesskey="&sendLinkToDevice.accesskey;"
330
hidden="true">
331
<menupopup id="context-sendlinktodevice-popup"
332
onpopupshowing="gSync.populateSendTabToDevicesMenu(event.target, gContextMenu.linkURL, gContextMenu.linkTextStr);"/>
333
</menu>
334
<menuseparator id="frame-sep"/>
335
<menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
336
<menupopup>
337
<menuitem id="context-showonlythisframe"
338
label="&showOnlyThisFrameCmd.label;"
339
accesskey="&showOnlyThisFrameCmd.accesskey;"
340
oncommand="gContextMenu.showOnlyThisFrame();"/>
341
<menuitem id="context-openframeintab"
342
label="&openFrameCmdInTab.label;"
343
accesskey="&openFrameCmdInTab.accesskey;"
344
oncommand="gContextMenu.openFrameInTab();"/>
345
<menuitem id="context-openframe"
346
label="&openFrameCmd.label;"
347
accesskey="&openFrameCmd.accesskey;"
348
oncommand="gContextMenu.openFrame();"/>
349
<menuseparator id="open-frame-sep"/>
350
<menuitem id="context-reloadframe"
351
label="&reloadFrameCmd.label;"
352
accesskey="&reloadFrameCmd.accesskey;"
353
oncommand="gContextMenu.reloadFrame(event);"/>
354
<menuseparator/>
355
<menuitem id="context-bookmarkframe"
356
label="&bookmarkThisFrameCmd.label;"
357
accesskey="&bookmarkThisFrameCmd.accesskey;"
358
oncommand="gContextMenu.addBookmarkForFrame();"/>
359
<menuitem id="context-saveframe"
360
label="&saveFrameCmd.label;"
361
accesskey="&saveFrameCmd.accesskey;"
362
oncommand="gContextMenu.saveFrame();"/>
363
<menuseparator/>
364
<menuitem id="context-printframe"
365
label="&printFrameCmd.label;"
366
accesskey="&printFrameCmd.accesskey;"
367
oncommand="gContextMenu.printFrame();"/>
368
<menuseparator/>
369
<menuitem id="context-viewframesource"
370
label="&viewFrameSourceCmd.label;"
371
accesskey="&viewFrameSourceCmd.accesskey;"
372
oncommand="gContextMenu.viewFrameSource();"/>
373
<menuitem id="context-viewframeinfo"
374
label="&viewFrameInfoCmd.label;"
375
accesskey="&viewFrameInfoCmd.accesskey;"
376
oncommand="gContextMenu.viewFrameInfo();"/>
377
</menupopup>
378
</menu>
379
<menuitem id="context-viewpartialsource-selection"
380
label="&viewPartialSourceForSelectionCmd.label;"
381
accesskey="&viewPartialSourceCmd.accesskey;"
382
oncommand="gContextMenu.viewPartialSource();"/>
383
<menuseparator id="context-sep-viewsource"/>
384
<menuitem id="context-viewsource"
385
label="&viewPageSourceCmd.label;"
386
accesskey="&viewPageSourceCmd.accesskey;"
387
oncommand="BrowserViewSource(gContextMenu.browser);"/>
388
<menuitem id="context-viewinfo"
389
label="&viewPageInfoCmd.label;"
390
accesskey="&viewPageInfoCmd.accesskey;"
391
oncommand="gContextMenu.viewInfo();"/>
392
<menuseparator id="spell-separator"/>
393
<menuitem id="spell-check-enabled"
394
label="&spellCheckToggle.label;"
395
type="checkbox"
396
accesskey="&spellCheckToggle.accesskey;"
397
oncommand="InlineSpellCheckerUI.toggleEnabled(window);"/>
398
<menuitem id="spell-add-dictionaries-main"
399
label="&spellAddDictionaries.label;"
400
accesskey="&spellAddDictionaries.accesskey;"
401
oncommand="gContextMenu.addDictionaries();"/>
402
<menu id="spell-dictionaries"
403
label="&spellDictionaries.label;"
404
accesskey="&spellDictionaries.accesskey;">
405
<menupopup id="spell-dictionaries-menu">
406
<menuseparator id="spell-language-separator"/>
407
<menuitem id="spell-add-dictionaries"
408
label="&spellAddDictionaries.label;"
409
accesskey="&spellAddDictionaries.accesskey;"
410
oncommand="gContextMenu.addDictionaries();"/>
411
</menupopup>
412
</menu>
413
<menuseparator hidden="true" id="context-sep-bidi"/>
414
<menuitem hidden="true" id="context-bidi-text-direction-toggle"
415
label="&bidiSwitchTextDirectionItem.label;"
416
accesskey="&bidiSwitchTextDirectionItem.accesskey;"
417
command="cmd_switchTextDirection"/>
418
<menuitem hidden="true" id="context-bidi-page-direction-toggle"
419
label="&bidiSwitchPageDirectionItem.label;"
420
accesskey="&bidiSwitchPageDirectionItem.accesskey;"
421
oncommand="gContextMenu.switchPageDirection();"/>
422
<menuseparator id="fill-login-separator" hidden="true"/>
423
<menu id="fill-login"
424
label="&fillLoginMenu.label;"
425
label-login="&fillLoginMenu.label;"
426
label-password="&fillPasswordMenu.label;"
427
label-username="&fillUsernameMenu.label;"
428
accesskey="&fillLoginMenu.accesskey;"
429
accesskey-login="&fillLoginMenu.accesskey;"
430
accesskey-password="&fillPasswordMenu.accesskey;"
431
accesskey-username="&fillUsernameMenu.accesskey;"
432
hidden="true">
433
<menupopup id="fill-login-popup">
434
<menuitem id="fill-login-no-logins"
435
label="&noLoginSuggestions.label;"
436
disabled="true"
437
hidden="true"/>
438
<menuseparator id="saved-logins-separator"/>
439
<menuitem id="fill-login-saved-passwords"
440
label="&viewSavedLogins.label;"
441
oncommand="gContextMenu.openPasswordManager();"/>
442
</menupopup>
443
</menu>
444
<menuseparator id="inspect-separator" hidden="true"/>
445
<menuitem id="context-inspect"
446
hidden="true"
447
label="&inspectContextMenu.label;"
448
accesskey="&inspectContextMenu.accesskey;"
449
oncommand="gContextMenu.inspectNode();"/>
450
<menuitem id="context-inspect-a11y"
451
hidden="true"
452
label="&inspectA11YContextMenu.label;"
453
oncommand="gContextMenu.inspectA11Y();"/>
454
<menuseparator id="context-media-eme-separator" hidden="true"/>
455
<menuitem id="context-media-eme-learnmore"
456
class="menuitem-iconic"
457
hidden="true"
458
label="&emeLearnMoreContextMenu.label;"
459
accesskey="&emeLearnMoreContextMenu.accesskey;"
460
oncommand="gContextMenu.drmLearnMore(event);"
461
onclick="checkForMiddleClick(this, event);"/>