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.usePrivate, this.principal, this.csp);"/>
324
<menuitem id="context-searchselect-private"
325
oncommand="BrowserSearch.loadSearchFromContext(this.searchTerms, true, this.principal, this.csp);"/>
326
<menuseparator id="context-sep-sendlinktodevice" class="sync-ui-item"
327
hidden="true"/>
328
<menu id="context-sendlinktodevice"
329
class="sync-ui-item"
330
label="&sendLinkToDevice.label;"
331
accesskey="&sendLinkToDevice.accesskey;"
332
hidden="true">
333
<menupopup id="context-sendlinktodevice-popup"
334
onpopupshowing="gSync.populateSendTabToDevicesMenu(event.target, gContextMenu.linkURL, gContextMenu.linkTextStr);"/>
335
</menu>
336
<menuseparator id="frame-sep"/>
337
<menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
338
<menupopup>
339
<menuitem id="context-showonlythisframe"
340
label="&showOnlyThisFrameCmd.label;"
341
accesskey="&showOnlyThisFrameCmd.accesskey;"
342
oncommand="gContextMenu.showOnlyThisFrame();"/>
343
<menuitem id="context-openframeintab"
344
label="&openFrameCmdInTab.label;"
345
accesskey="&openFrameCmdInTab.accesskey;"
346
oncommand="gContextMenu.openFrameInTab();"/>
347
<menuitem id="context-openframe"
348
label="&openFrameCmd.label;"
349
accesskey="&openFrameCmd.accesskey;"
350
oncommand="gContextMenu.openFrame();"/>
351
<menuseparator id="open-frame-sep"/>
352
<menuitem id="context-reloadframe"
353
label="&reloadFrameCmd.label;"
354
accesskey="&reloadFrameCmd.accesskey;"
355
oncommand="gContextMenu.reloadFrame(event);"/>
356
<menuseparator/>
357
<menuitem id="context-bookmarkframe"
358
label="&bookmarkThisFrameCmd.label;"
359
accesskey="&bookmarkThisFrameCmd.accesskey;"
360
oncommand="gContextMenu.addBookmarkForFrame();"/>
361
<menuitem id="context-saveframe"
362
label="&saveFrameCmd.label;"
363
accesskey="&saveFrameCmd.accesskey;"
364
oncommand="gContextMenu.saveFrame();"/>
365
<menuseparator/>
366
<menuitem id="context-printframe"
367
label="&printFrameCmd.label;"
368
accesskey="&printFrameCmd.accesskey;"
369
oncommand="gContextMenu.printFrame();"/>
370
<menuseparator/>
371
<menuitem id="context-viewframesource"
372
label="&viewFrameSourceCmd.label;"
373
accesskey="&viewFrameSourceCmd.accesskey;"
374
oncommand="gContextMenu.viewFrameSource();"/>
375
<menuitem id="context-viewframeinfo"
376
label="&viewFrameInfoCmd.label;"
377
accesskey="&viewFrameInfoCmd.accesskey;"
378
oncommand="gContextMenu.viewFrameInfo();"/>
379
#ifdef NIGHTLY_BUILD
380
<menuitem id="context-frameOsPid"
381
label="PID: Unknown"
382
disabled="true"/>
383
#endif
384
</menupopup>
385
</menu>
386
<menuitem id="context-viewpartialsource-selection"
387
label="&viewPartialSourceForSelectionCmd.label;"
388
accesskey="&viewPartialSourceCmd.accesskey;"
389
oncommand="gContextMenu.viewPartialSource();"/>
390
<menuseparator id="context-sep-viewsource"/>
391
<menuitem id="context-viewsource"
392
label="&viewPageSourceCmd.label;"
393
accesskey="&viewPageSourceCmd.accesskey;"
394
oncommand="BrowserViewSource(gContextMenu.browser);"/>
395
<menuitem id="context-viewinfo"
396
label="&viewPageInfoCmd.label;"
397
accesskey="&viewPageInfoCmd.accesskey;"
398
oncommand="gContextMenu.viewInfo();"/>
399
<menuseparator id="spell-separator"/>
400
<menuitem id="spell-check-enabled"
401
label="&spellCheckToggle.label;"
402
type="checkbox"
403
accesskey="&spellCheckToggle.accesskey;"
404
oncommand="InlineSpellCheckerUI.toggleEnabled(window);"/>
405
<menuitem id="spell-add-dictionaries-main"
406
label="&spellAddDictionaries.label;"
407
accesskey="&spellAddDictionaries.accesskey;"
408
oncommand="gContextMenu.addDictionaries();"/>
409
<menu id="spell-dictionaries"
410
label="&spellDictionaries.label;"
411
accesskey="&spellDictionaries.accesskey;">
412
<menupopup id="spell-dictionaries-menu">
413
<menuseparator id="spell-language-separator"/>
414
<menuitem id="spell-add-dictionaries"
415
label="&spellAddDictionaries.label;"
416
accesskey="&spellAddDictionaries.accesskey;"
417
oncommand="gContextMenu.addDictionaries();"/>
418
</menupopup>
419
</menu>
420
<menuseparator hidden="true" id="context-sep-bidi"/>
421
<menuitem hidden="true" id="context-bidi-text-direction-toggle"
422
label="&bidiSwitchTextDirectionItem.label;"
423
accesskey="&bidiSwitchTextDirectionItem.accesskey;"
424
command="cmd_switchTextDirection"/>
425
<menuitem hidden="true" id="context-bidi-page-direction-toggle"
426
label="&bidiSwitchPageDirectionItem.label;"
427
accesskey="&bidiSwitchPageDirectionItem.accesskey;"
428
oncommand="gContextMenu.switchPageDirection();"/>
429
<menuseparator id="fill-login-separator" hidden="true"/>
430
<menu id="fill-login"
431
label="&fillLoginMenu.label;"
432
label-login="&fillLoginMenu.label;"
433
label-password="&fillPasswordMenu.label;"
434
label-username="&fillUsernameMenu.label;"
435
accesskey="&fillLoginMenu.accesskey;"
436
accesskey-login="&fillLoginMenu.accesskey;"
437
accesskey-password="&fillPasswordMenu.accesskey;"
438
accesskey-username="&fillUsernameMenu.accesskey;"
439
hidden="true">
440
<menupopup id="fill-login-popup">
441
<menuitem id="fill-login-no-logins"
442
label="&noLoginSuggestions.label;"
443
disabled="true"
444
hidden="true"/>
445
<menuseparator id="generated-password-separator"/>
446
<menuitem id="fill-login-generated-password"
447
label="&fillGeneratedPassword.label;"
448
accesskey="&fillGeneratedPassword.accesskey;"
449
hidden="true"
450
oncommand="gContextMenu.fillGeneratedPassword();"/>
451
<menuseparator id="saved-logins-separator"/>
452
<menuitem id="fill-login-saved-passwords"
453
label="&viewSavedLogins.label;"
454
oncommand="gContextMenu.openPasswordManager();"/>
455
</menupopup>
456
</menu>
457
<menuseparator id="inspect-separator" hidden="true"/>
458
<menuitem id="context-inspect"
459
hidden="true"
460
label="&inspectContextMenu.label;"
461
accesskey="&inspectContextMenu.accesskey;"
462
oncommand="gContextMenu.inspectNode();"/>
463
<menuitem id="context-inspect-a11y"
464
hidden="true"
465
label="&inspectA11YContextMenu.label;"
466
oncommand="gContextMenu.inspectA11Y();"/>
467
<menuseparator id="context-media-eme-separator" hidden="true"/>
468
<menuitem id="context-media-eme-learnmore"
469
class="menuitem-iconic"
470
hidden="true"
471
label="&emeLearnMoreContextMenu.label;"
472
accesskey="&emeLearnMoreContextMenu.accesskey;"
473
oncommand="gContextMenu.drmLearnMore(event);"
474
onclick="checkForMiddleClick(this, event);"/>