browser-menubar.inc 29.8 KB
Newer Older
1
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
3
4
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5

6
       <menubar id="main-menubar"
7
8
9
10
# On macOS, we don't track whether activation of the native menubar happened
# with the keyboard.
#ifndef XP_MACOSX
                onpopupshowing="if (event.target.parentNode.parentNode == this)
11
                                  this.setAttribute('openedwithkey',
12
13
14
                                                    event.target.parentNode.openedWithKey);"
#endif
                >
15
            <menu id="file-menu" data-l10n-id="menu-file">
16
              <menupopup id="menu_FilePopup"
17
                         onpopupshowing="updateFileMenuUserContextUIVisibility('menu_newUserContext');
18
19
                                         updateImportCommandEnabledState();
                                         PrintUtils.updatePrintPreviewMenuHiddenState();">
20
21
                <menuitem id="menu_newNavigatorTab"
                          command="cmd_newNavigatorTab"
22
                          key="key_newNavigatorTab" data-l10n-id="menu-file-new-tab"/>
23
                <menu id="menu_newUserContext"
24
                      hidden="true" data-l10n-id="menu-file-new-container-tab">
25
                  <menupopup onpopupshowing="return createUserContextMenu(event);" />
26
                </menu>
27
28
                <menuitem id="menu_newNavigator"
                          key="key_newNavigator"
29
                          command="cmd_newNavigator" data-l10n-id="menu-file-new-window"/>
30
31
                <menuitem id="menu_newPrivateWindow"
                          command="Tools:PrivateBrowsing"
32
                          key="key_privatebrowsing" data-l10n-id="menu-file-new-private-window"/>
33
34
35
36
37
38
39
40
#ifdef NIGHTLY_BUILD
                <menuitem id="menu_newFissionWindow"
                          command="Tools:FissionWindow"
                          accesskey="s" label="New Fission Window"/>
                <menuitem id="menu_newNonFissionWindow"
                          command="Tools:NonFissionWindow"
                          accesskey="s" label="New Non-Fission Window"/>
#endif
41
42
43
44
45
46
47
48
49
50
51
52
                <menuseparator/>
                <menuitem id="menu_newIdentity"
                          accesskey="&torbutton.context_menu.new_identity_key;"
                          key="torbutton-new-identity-key"
                          label="&torbutton.context_menu.new_identity;"
                          oncommand="torbutton_new_identity();"/>
                <menuitem id="menu_newCircuit"
                          accesskey="&torbutton.context_menu.new_circuit_key;"
                          key="torbutton-new-circuit-key"
                          label="&torbutton.context_menu.new_circuit;"
                          oncommand="torbutton_new_circuit();"/>
                <menuseparator/>
53
                <menuitem id="menu_openLocation"
54
                          hidden="true"
55
                          command="Browser:OpenLocation"
56
                          key="focusURLBar" data-l10n-id="menu-file-open-location"/>
57
58
                <menuitem id="menu_openFile"
                          command="Browser:OpenFile"
59
                          key="openFileKb" data-l10n-id="menu-file-open-file"/>
60
                <menuitem id="menu_close"
61
                          class="show-only-for-keyboard"
62
                          key="key_close"
63
                          command="cmd_close" data-l10n-id="menu-file-close"/>
64
                <menuitem id="menu_closeWindow"
65
                          class="show-only-for-keyboard"
66
67
                          hidden="true"
                          command="cmd_closeWindow"
68
                          key="key_closeWindow" data-l10n-id="menu-file-close-window"/>
69
                <menuseparator/>
70
71
                <menuitem id="menu_savePage"
                          key="key_savePage"
72
                          command="Browser:SavePage" data-l10n-id="menu-file-save-page"/>
73
                <menuitem id="menu_sendLink"
74
                          command="Browser:SendLink" data-l10n-id="menu-file-email-link"/>
75
                <menuseparator/>
76
#if !defined(MOZ_WIDGET_GTK)
77
                <menuitem id="menu_printSetup"
78
                          command="cmd_pageSetup" data-l10n-id="menu-file-print-setup" hidden="true"/>
79
#endif
80
#ifndef XP_MACOSX
81
                <menuitem id="menu_printPreview"
82
                          command="cmd_printPreview" data-l10n-id="menu-file-print-preview" hidden="true"/>
83
#endif
84
85
                <menuitem id="menu_print"
                          key="printKb"
86
                          command="cmd_print" data-l10n-id="menu-file-print"/>
87
                <menuseparator/>
88
                <menuitem id="menu_importFromAnotherBrowser"
89
                          command="cmd_file_importFromAnotherBrowser" data-l10n-id="menu-file-import-from-another-browser"/>
90
                <menuseparator/>
91
                <menuitem id="goOfflineMenuitem"
92
                          type="checkbox"
93
                          command="cmd_toggleOfflineStatus" data-l10n-id="menu-file-go-offline"/>
94
                <menuitem id="menu_FileQuitItem"
95
96
#ifdef XP_MACOSX
                          data-l10n-id="menu-quit-mac"
97
#else
98
                          data-l10n-id="menu-quit"
99
#endif
100
101
                          key="key_quitApplication"
                          command="cmd_quitApplication"/>
102
103
              </menupopup>
            </menu>
104

105
            <menu id="edit-menu" data-l10n-id="menu-edit">
106
107
108
              <menupopup id="menu_EditPopup"
                         onpopupshowing="updateEditUIVisibility()"
                         onpopuphidden="updateEditUIVisibility()">
109
                <menuitem id="menu_undo"
110
                          key="key_undo"
111
                          command="cmd_undo" data-l10n-id="text-action-undo"/>
112
                <menuitem id="menu_redo"
113
                          key="key_redo"
114
                          command="cmd_redo" data-l10n-id="text-action-redo"/>
115
                <menuseparator/>
116
                <menuitem id="menu_cut"
117
                          key="key_cut"
118
                          command="cmd_cut" data-l10n-id="text-action-cut"/>
119
                <menuitem id="menu_copy"
120
                          key="key_copy"
121
                          command="cmd_copy" data-l10n-id="text-action-copy"/>
122
                <menuitem id="menu_paste"
123
                          key="key_paste"
124
                          command="cmd_paste" data-l10n-id="text-action-paste"/>
125
                <menuitem id="menu_delete"
126
                          key="key_delete"
127
                          command="cmd_delete" data-l10n-id="text-action-delete"/>
128
                <menuseparator/>
129
                <menuitem id="menu_selectAll"
130
                          key="key_selectAll"
131
                          command="cmd_selectAll" data-l10n-id="text-action-select-all"/>
132
                <menuseparator/>
133
134
                <menuitem id="menu_find"
                          key="key_find"
135
                          command="cmd_find" data-l10n-id="menu-edit-find-in-page"/>
136
                <menuitem id="menu_findAgain"
137
                          class="show-only-for-keyboard"
138
                          key="key_findAgain"
139
                          command="cmd_findAgain" data-l10n-id="menu-edit-find-again"/>
140
                <menuseparator hidden="true" id="textfieldDirection-separator"/>
141
142
143
                <menuitem id="textfieldDirection-swap"
                          command="cmd_switchTextDirection"
                          key="key_switchTextDirection"
144
                          hidden="true" data-l10n-id="menu-edit-bidi-switch-text-direction"/>
145
146
147
148
#ifdef XP_UNIX
#ifndef XP_MACOSX
                <menuseparator/>
                <menuitem id="menu_preferences"
149
150
151
152
153
154
155
                          oncommand="openPreferences(undefined);"
#ifdef NIGHTLY_BUILD
                          data-l10n-id="menu-settings"
#else
                          data-l10n-id="menu-preferences"
#endif
                          />
156
157
#endif
#endif
158
159
              </menupopup>
            </menu>
160

161
            <menu id="view-menu" data-l10n-id="menu-view">
162
163
              <menupopup id="menu_viewPopup"
                         onpopupshowing="updateCharacterEncodingMenuState();">
164
                <menu id="viewToolbarsMenu" data-l10n-id="menu-view-toolbars-menu">
165
                  <menupopup id="view-menu-popup" onpopupshowing="onViewToolbarsPopupShowing(event);">
166
                    <menuseparator/>
167
                    <menuitem id="menu_customizeToolbars"
168
                              command="cmd_CustomizeToolbars" data-l10n-id="menu-view-customize-toolbar2"/>
169
170
                  </menupopup>
                </menu>
171
                <menu id="viewSidebarMenuMenu" data-l10n-id="menu-view-sidebar">
172
                  <menupopup id="viewSidebarMenu">
173
                    <menuitem id="menu_bookmarksSidebar"
174
                              type="checkbox"
175
                              key="viewBookmarksSidebarKb"
176
                              oncommand="SidebarUI.toggle('viewBookmarksSidebar');" data-l10n-id="menu-view-bookmarks"/>
177
                    <menuitem id="menu_historySidebar"
178
                              type="checkbox"
179
                              key="key_gotoHistory"
180
                              oncommand="SidebarUI.toggle('viewHistorySidebar');" data-l10n-id="menu-view-history-button"/>
181
                    <menuitem id="menu_tabsSidebar"
182
                              type="checkbox"
183
                              class="sync-ui-item"
184
                              oncommand="SidebarUI.toggle('viewTabsSidebar');" data-l10n-id="menu-view-synced-tabs-sidebar"/>
185
                  </menupopup>
186
                </menu>
187
                <menuseparator/>
188
189
                <menu id="viewFullZoomMenu"
                      onpopupshowing="FullZoom.updateMenu();" data-l10n-id="menu-view-full-zoom">
190
                  <menupopup>
191
192
                    <menuitem id="menu_zoomEnlarge"
                              key="key_fullZoomEnlarge"
193
                              command="cmd_fullZoomEnlarge" data-l10n-id="menu-view-full-zoom-enlarge"/>
194
195
                    <menuitem id="menu_zoomReduce"
                              key="key_fullZoomReduce"
196
                              command="cmd_fullZoomReduce" data-l10n-id="menu-view-full-zoom-reduce"/>
197
                    <menuseparator/>
198
199
                    <menuitem id="menu_zoomReset"
                              key="key_fullZoomReset"
200
                              command="cmd_fullZoomReset" data-l10n-id="menu-view-full-zoom-actual-size"/>
201
                    <menuseparator/>
202
203
204
                    <menuitem id="toggle_zoom"
                              type="checkbox"
                              command="cmd_fullZoomToggle"
205
                              checked="false" data-l10n-id="menu-view-full-zoom-toggle"/>
206
207
                  </menupopup>
                </menu>
208
                <menu id="pageStyleMenu" data-l10n-id="menu-view-page-style-menu">
209
                  <menupopup onpopupshowing="gPageStyleMenu.fillPopup(this);">
210
                    <menuitem id="menu_pageStyleNoStyle"
211
                              oncommand="gPageStyleMenu.disableStyle();"
212
                              type="radio" data-l10n-id="menu-view-page-style-no-style"/>
213
                    <menuitem id="menu_pageStylePersistentOnly"
214
                              oncommand="gPageStyleMenu.switchStyleSheet(null);"
215
                              type="radio"
216
                              checked="true" data-l10n-id="menu-view-page-basic-style"/>
217
218
219
                    <menuseparator/>
                  </menupopup>
                </menu>
220
221
                <menu id="charsetMenu"
                    oncommand="BrowserSetForcedCharacterSet(event.target.getAttribute('charset'));"
222
                    onpopupshowing="CharsetMenu.build(event.target); UpdateCurrentCharset(this);" data-l10n-id="menu-view-charset">
223
224
225
                  <menupopup>
                  </menupopup>
                </menu>
226
                <menuseparator/>
227
228
#ifdef XP_MACOSX
                <menuitem id="enterFullScreenItem"
229
                          key="key_fullScreen" data-l10n-id="menu-view-enter-full-screen">
230
231
232
233
                  <observes element="View:FullScreen" attribute="oncommand"/>
                </menuitem>
                <menuitem id="exitFullScreenItem"
                          key="key_fullScreen"
234
                          hidden="true" data-l10n-id="menu-view-exit-full-screen">
235
236
237
                  <observes element="View:FullScreen" attribute="oncommand"/>
                </menuitem>
#else
Gavin Sharp's avatar
Gavin Sharp committed
238
239
                <menuitem id="fullScreenItem"
                          key="key_fullScreen"
240
                          type="checkbox"
241
                          observes="View:FullScreen" data-l10n-id="menu-view-full-screen"/>
242
#endif
243
244
                <menuitem id="menu_readerModeItem"
                          observes="View:ReaderView"
245
                          key="key_toggleReaderMode"
246
                          hidden="true"/>
247
248
249
                <menuitem id="menu_showAllTabs"
                          hidden="true"
                          command="Browser:ShowAllTabs"
250
                          key="key_showAllTabs" data-l10n-id="menu-view-show-all-tabs"/>
251
                <menuseparator hidden="true" id="documentDirection-separator"/>
252
253
                <menuitem id="documentDirection-swap"
                          hidden="true"
254
                          oncommand="gBrowser.selectedBrowser.sendMessageToActor('SwitchDocumentDirection', {}, 'SwitchDocumentDirection', 'roots');" data-l10n-id="menu-view-bidi-switch-page-direction"/>
255
256
              </menupopup>
            </menu>
257

258
            <menu id="history-menu" data-l10n-id="menu-history">
259
              <menupopup id="goPopup"
260
261
#ifndef XP_MACOSX
                         placespopup="true"
262
                         is="places-popup"
263
#endif
264
265
266
                         oncommand="this.parentNode._placesView._onCommand(event);"
                         onclick="checkForMiddleClick(this, event);"
                         onpopupshowing="if (!this.parentNode._placesView)
267
268
269
                                           new HistoryMenu(event);"
                         tooltip="bhTooltip"
                         popupsinherittooltip="true">
270
                <menuitem id="menu_showAllHistory"
271
                          key="showAllHistoryKb"
272
                          command="Browser:ShowAllHistory" data-l10n-id="menu-history-show-all-history"/>
273
274
                <menuitem id="sanitizeItem"
                          key="key_sanitize"
275
                          command="Tools:Sanitize" data-l10n-id="menu-history-clear-recent-history"/>
276
                <menuseparator id="sanitizeSeparator"/>
277
                <menuitem id="sync-tabs-menuitem"
278
                          oncommand="gSync.openSyncedTabsPanel();"
279
                          hidden="true" data-l10n-id="menu-history-synced-tabs"/>
280
                <menuitem id="historyRestoreLastSession"
281
                          command="Browser:RestoreLastSession" data-l10n-id="menu-history-restore-last-session"/>
282
                <menuitem id="hiddenTabsMenu"
283
                          oncommand="gTabsPanel.showHiddenTabsPanel(event);"
284
                          hidden="true" data-l10n-id="menu-history-hidden-tabs"/>
285
                <menu id="historyUndoMenu"
286
                      disabled="true" data-l10n-id="menu-history-undo-menu">
287
288
289
                  <menupopup id="historyUndoPopup"
#ifndef XP_MACOSX
                             placespopup="true"
290
                             is="places-popup"
291
292
#endif
                             onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoSubmenu();"/>
293
                </menu>
294
                <menu id="historyUndoWindowMenu"
295
                      disabled="true" data-l10n-id="menu-history-undo-window-menu">
296
297
298
                  <menupopup id="historyUndoWindowPopup"
#ifndef XP_MACOSX
                             placespopup="true"
299
                             is="places-popup"
300
#endif
301
302
303
304
305
306
307
308
309
310
311
312
                             onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoWindowSubmenu();">
#ifdef HIDDEN_WINDOW
# This entry is never visible. It's here to make the cmd-shift-n
# shortcut work in the hidden window when the last window is closed.
# If the menu is actually opened, we'll clear this out and replace
# it with a "real" entry.
# See bug 492320 for the nasty details.
                    <menuitem key="key_undoCloseWindow"
                              oncommand="undoCloseWindow(0)"
                              />
#endif
                  </menupopup>
313
                </menu>
314
315
                <menuseparator id="startHistorySeparator"
                               class="hide-if-empty-places-result"/>
316
317
              </menupopup>
            </menu>
318

319
  <menu id="bookmarksMenu"
320
321
        ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
        ondragover="PlacesMenuDNDHandler.onDragOver(event);"
322
323
        ondrop="PlacesMenuDNDHandler.onDrop(event);"
        data-l10n-id="menu-bookmarks-menu">
324
    <menupopup id="bookmarksMenuPopup"
325
326
#ifndef XP_MACOSX
               placespopup="true"
327
               is="places-popup"
328
#endif
329
330
               context="placesContext"
               openInTabs="children"
331
               onmouseup="BookmarksEventHandler.onMouseUp(event);"
332
               oncommand="BookmarksEventHandler.onCommand(event);"
333
               onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
334
               onpopupshowing="BookmarkingUI.onMainMenuPopupShowing(event);
335
                               if (!this.parentNode._placesView)
336
                                 new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.menuGuid}`);"
337
               tooltip="bhTooltip" popupsinherittooltip="true">
338
339
      <menuitem id="bookmarksShowAll"
                command="Browser:ShowAllBookmarks"
340
341
                key="manBookmarkKb"
                data-l10n-id="menu-bookmarks-show-all"/>
342
      <menuseparator id="organizeBookmarksSeparator"/>
343
344
      <menuitem id="menu_bookmarkThisPage"
                command="Browser:AddBookmarkAs"
345
                key="addBookmarkAsKb"
346
                data-l10n-id="menu-bookmark-current-tab"/>
347
      <menuitem id="menu_bookmarkAllTabs"
348
                class="show-only-for-keyboard"
349
                command="Browser:BookmarkAllTabs"
350
351
                key="bookmarkAllTabsKb"
                data-l10n-id="menu-bookmarks-all-tabs"/>
352
      <menuseparator id="bookmarksToolbarSeparator"/>
353
354
      <menu id="bookmarksToolbarFolderMenu"
            class="menu-iconic bookmark-item"
355
356
            container="true"
            data-l10n-id="menu-bookmarks-toolbar">
357
        <menupopup id="bookmarksToolbarFolderPopup"
358
359
#ifndef XP_MACOSX
                   placespopup="true"
360
                   is="places-popup"
361
#endif
362
                   context="placesContext"
363
                   onpopupshowing="if (!this.parentNode._placesView)
364
                                     new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.toolbarGuid}`);"/>
365
      </menu>
366
367
      <menu id="menu_unsortedBookmarks"
            class="menu-iconic bookmark-item"
368
369
            container="true"
            data-l10n-id="menu-bookmarks-other">
370
371
372
        <menupopup id="otherBookmarksFolderPopup"
#ifndef XP_MACOSX
                   placespopup="true"
373
                   is="places-popup"
374
375
376
#endif
                   context="placesContext"
                   onpopupshowing="if (!this.parentNode._placesView)
377
                                     new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.unfiledGuid}`);"/>
378
      </menu>
379
380
381
      <menu id="menu_mobileBookmarks"
            class="menu-iconic bookmark-item"
            hidden="true"
382
383
            container="true"
            data-l10n-id="menu-bookmarks-mobile">
384
385
386
        <menupopup id="mobileBookmarksFolderPopup"
#ifndef XP_MACOSX
                   placespopup="true"
387
                   is="places-popup"
388
389
390
#endif
                   context="placesContext"
                   onpopupshowing="if (!this.parentNode._placesView)
391
                                     new PlacesMenu(event, `place:parent=${PlacesUtils.bookmarks.mobileGuid}`);"/>
392
      </menu>
393
394
      <menuseparator id="bookmarksMenuItemsSeparator"/>
      <!-- Bookmarks menu items -->
395
396
    </menupopup>
  </menu>
397

398
            <menu id="tools-menu" data-l10n-id="menu-tools">
399
              <menupopup id="menu_ToolsPopup">
400
401
              <menuitem id="menu_openDownloads"
                        key="key_openDownloads"
402
                        command="Tools:Downloads" data-l10n-id="menu-tools-downloads"/>
403
              <menuitem id="menu_openAddons"
404
                        key="key_openAddons"
405
                        command="Tools:Addons" data-l10n-id="menu-tools-addons-and-themes"/>
406

407
              <!-- only one of sync-setup, sync-enable, sync-unverifieditem, sync-syncnowitem or sync-reauthitem will be showing at once -->
408
              <menuitem id="sync-setup"
409
                        class="sync-ui-item"
410
                        hidden="true"
411
                        oncommand="gSync.openPrefs('menubar')" data-l10n-id="menu-tools-fxa-sign-in2"/>
412
413
414
415
              <menuitem id="sync-enable"
                        class="sync-ui-item"
                        hidden="true"
                        oncommand="gSync.openPrefs('menubar')" data-l10n-id="menu-tools-turn-on-sync"/>
416
              <menuitem id="sync-unverifieditem"
417
                        class="sync-ui-item"
418
                        hidden="true"
419
                        oncommand="gSync.openPrefs('menubar')" data-l10n-id="menu-tools-fxa-sign-in2"/>
420
              <menuitem id="sync-syncnowitem"
421
                        class="sync-ui-item"
422
                        hidden="true"
423
                        oncommand="gSync.doSync(event);" data-l10n-id="menu-tools-sync-now"/>
424
              <menuitem id="sync-reauthitem"
425
                        class="sync-ui-item"
426
                        hidden="true"
427
                        oncommand="gSync.openSignInAgainPage('menubar');" data-l10n-id="menu-tools-fxa-re-auth"/>
428
              <menuseparator id="devToolsSeparator"/>
429
              <menu id="webDeveloperMenu" data-l10n-id="menu-tools-browser-tools">
430
                <menupopup id="menuWebDeveloperPopup">
431
432
433
434
                  <menuitem id="menu_taskManager"
                            oncommand="switchToTabHavingURI('about:performance', true)"
                            onclick="checkForMiddleClick(this, event);"
                            data-l10n-id="menu-tools-task-manager"/>
435
                  <menuitem id="menu_pageSource"
436
                            key="key_viewSource"
437
                            command="View:PageSource" data-l10n-id="menu-tools-page-source"/>
438
439
                </menupopup>
              </menu>
Dão Gottwald's avatar
Dão Gottwald committed
440
              <menuitem id="menu_pageInfo"
441
                        key="key_viewInfo"
442
                        command="View:PageInfo" data-l10n-id="menu-tools-page-info"/>
443
#ifndef XP_UNIX
444
445
              <menuseparator id="prefSep"/>
              <menuitem id="menu_preferences"
446
447
448
449
450
451
#ifdef NIGHTLY_BUILD
                        data-l10n-id="menu-settings"
#else
                        data-l10n-id="menu-preferences"
#endif
                        oncommand="openPreferences(undefined);"/>
452
453
#endif
#ifdef MOZ_DEBUG
454
              <menuitem id="menu_layout_debugger"
455
                        data-l10n-id="menu-tools-layout-debugger"
456
                        oncommand="toOpenWindowByType('mozapp:layoutdebug',
457
                                          'chrome://layoutdebug/content/layoutdebug.xhtml');"/>
458
459
460
#endif
#ifdef XP_MACOSX
<!-- nsMenuBarX hides these and uses them to build the Application menu. -->
461
462
463
              <menuitem id="menu_preferences"
                        data-l10n-id="menu-preferences"
                        key="key_preferencesCmdMac" oncommand="openPreferences(undefined);"/>
464
465
466
467
468
              <menuitem id="menu_mac_services" data-l10n-id="menu-application-services"/>
              <menuitem id="menu_mac_hide_app" data-l10n-id="menu-application-hide-this" key="key_hideThisAppCmdMac"/>
              <menuitem id="menu_mac_hide_others" data-l10n-id="menu-application-hide-other" key="key_hideOtherAppsCmdMac"/>
              <menuitem id="menu_mac_show_all" data-l10n-id="menu-application-show-all"/>
              <menuitem id="menu_mac_touch_bar" data-l10n-id="menu-application-touch-bar"/>
469
#endif
470
471
              </menupopup>
            </menu>
472
#ifdef XP_MACOSX
473
474
475
            <menu id="windowMenu"
                  onpopupshowing="macWindowMenuDidShow();"
                  onpopuphidden="macWindowMenuDidHide();"
476
                   data-l10n-id="menu-window-menu">
477
478
479
                <menupopup id="windowPopup">
                    <menuitem command="minimizeWindow" key="key_minimizeWindow"/>
                    <menuitem command="zoomWindow"/>
480
                    <!-- decomment when "BringAllToFront" is implemented
481
                        <menuseparator/>
482
                        <menuitem disabled="true" data-l10n-id="menu-window-bring-all-to-front"/> -->
483
484
485
486
                    <menuseparator id="sep-window-list"/>
                </menupopup>
            </menu>
#endif
487
            <menu id="helpMenu" data-l10n-id="menu-help">
488
              <menupopup id="menu_HelpPopup" onpopupshowing="buildHelpMenu();">
489
490
<!-- Note: Items under here are cloned to the AppMenu Help submenu. The cloned items
     have their strings defined by appmenu-data-l10n-id. -->
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
#ifdef MOZ_UPDATER
                <menuitem id="checkForUpdates"
                          data-l10n-id="menu-help-check-for-update"
                          appmenu-data-l10n-id="appmenu-help-check-for-update"
                          class="menuitem-iconic"
                          oncommand="openAboutDialog();"/>
#endif
                <!-- dummy elements to avoid 'getElementById' errors -->
                <box id="feedbackPage"/>
                <box id="helpSafeMode"/>
                <box id="menu_HelpPopup_reportPhishingtoolmenu"/>
                <box id="menu_HelpPopup_reportPhishingErrortoolmenu"/>
                <!-- Add Tor Browser manual link -->
                <menuitem id="torBrowserUserManual"
                          oncommand="gBrowser.selectedTab = gBrowser.addTab('https://tb-manual.torproject.org/' + Services.locale.requestedLocale, {triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal()});"
                          label="&aboutTor.torbrowser_user_manual.label;"
                          accesskey="&aboutTor.torbrowser_user_manual.accesskey;"/>
                <!-- Bug 18905: Hide unused help menu items -->
                <!-- <menuitem id="menu_openHelp"
510
511
                          oncommand="openHelpLink('firefox-help')"
                          onclick="checkForMiddleClick(this, event);"
512
513
                          data-l10n-id="menu-get-help"
                          appmenu-data-l10n-id="appmenu-get-help"
514
#ifdef XP_MACOSX
515
                          key="key_openHelpMac"/> -->
516
#else
517
                          /> -->
518
#endif
519
                <!-- <menuitem id="feedbackPage"
520
                          oncommand="openFeedbackPage()"
521
                          onclick="checkForMiddleClick(this, event);"
522
                          data-l10n-id="menu-help-feedback-page"
523
                          appmenu-data-l10n-id="appmenu-help-feedback-page"/> -->
524
525
                <menuitem id="helpSafeMode"
                          oncommand="safeModeRestart();"
526
527
                          data-l10n-id="menu-help-enter-troubleshoot-mode2"
                          appmenu-data-l10n-id="appmenu-help-enter-troubleshoot-mode2"/>
528
529
                <menuitem id="troubleShooting"
                          oncommand="openTroubleshootingPage()"
530
                          onclick="checkForMiddleClick(this, event);"
531
532
                          data-l10n-id="menu-help-more-troubleshooting-info"
                          appmenu-data-l10n-id="appmenu-help-more-troubleshooting-info"/>
533
534
535
536
537
                <menuitem id="help_reportSiteIssue"
                          oncommand="ReportSiteIssue();"
                          data-l10n-id="menu-help-report-site-issue"
                          appmenu-data-l10n-id="appmenu-help-report-site-issue"
                          hidden="true"/>
538
                <menuitem id="menu_HelpPopup_reportPhishingtoolmenu"
539
                <!-- <menuitem id="menu_HelpPopup_reportPhishingtoolmenu"
540
                          disabled="true"
541
                          oncommand="openUILink(gSafeBrowsing.getReportURL('Phish'), event, {triggeringPrincipal: Services.scriptSecurityManager.createNullPrincipal({})});"
542
                          onclick="checkForMiddleClick(this, event);"
543
544
                          hidden="true"
                          data-l10n-id="menu-help-report-deceptive-site"
545
546
                          appmenu-data-l10n-id="appmenu-help-report-deceptive-site"/> -->
                <!-- <menuitem id="menu_HelpPopup_reportPhishingErrortoolmenu"
547
                          disabled="true"
548
549
                          oncommand="ReportFalseDeceptiveSite();"
                          onclick="checkForMiddleClick(this, event);"
550
                          data-l10n-id="menu-help-not-deceptive"
551
                          appmenu-data-l10n-id="appmenu-help-not-deceptive"
552
                          hidden="true"/> -->
553
554
555
556
557
                <menuseparator id="aboutSeparator"/>
                <menuitem id="aboutName"
                          oncommand="openAboutDialog();"
                          data-l10n-id="menu-about"
                          appmenu-data-l10n-id="appmenu-about"/>
558
559
560
561
                <menuseparator id="helpPolicySeparator"
                          hidden="true"/>
                <menuitem id="helpPolicySupport"
                          hidden="true"
562
                          oncommand="openUILinkIn(Services.policies.getSupportMenu().URL.href, 'tab', {triggeringPrincipal: Services.scriptSecurityManager.createNullPrincipal({})});"
563
                          onclick="checkForMiddleClick(this, event);"/>
564
565
              </menupopup>
          </menu>
566
        </menubar>