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/.
6 <menubar id="main-menubar"
7 onpopupshowing="if (event.target.parentNode.parentNode == this &&
8 !('@mozilla.org/widget/nativemenuservice;1' in Cc))
9 this.setAttribute('openedwithkey',
10 event.target.parentNode.openedWithKey);"
11 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
12 <menu id="file-menu" label="&fileMenu.label;"
13 accesskey="&fileMenu.accesskey;">
14 <menupopup id="menu_FilePopup">
15 <menuitem id="menu_newNavigatorTab"
16 label="&tabCmd.label;"
17 command="cmd_newNavigatorTab"
18 key="key_newNavigatorTab"
19 accesskey="&tabCmd.accesskey;"/>
20 <menuitem id="menu_newNavigator"
21 label="&newNavigatorCmd.label;"
22 accesskey="&newNavigatorCmd.accesskey;"
23 key="key_newNavigator"
24 command="cmd_newNavigator"/>
25 <menuitem id="menu_newPrivateWindow"
26 label="&newPrivateWindow.label;"
27 accesskey="&newPrivateWindow.accesskey;"
28 command="Tools:PrivateBrowsing"
29 key="key_privatebrowsing"/>
30 #ifdef E10S_TESTING_ONLY
31 <menuitem id="menu_newRemoteWindow"
32 label="New e10s Window"
34 command="Tools:RemoteWindow"/>
35 <menuitem id="menu_newNonRemoteWindow"
36 label="New Non-e10s Window"
38 command="Tools:NonRemoteWindow"/>
40 #ifdef MAC_NON_BROWSER_WINDOW
41 <menuitem id="menu_openLocation"
42 label="&openLocationCmd.label;"
43 command="Browser:OpenLocation"
46 <menuitem id="menu_openFile"
47 label="&openFileCmd.label;"
48 command="Browser:OpenFile"
50 accesskey="&openFileCmd.accesskey;"/>
51 #ifdef HAVE_SHELL_SERVICE
54 <menuitem id="menu_switchToMetro"
55 label="&switchToMetroCmd2.label;"
56 oncommand="SwitchToMetro()"/>
60 <menuitem id="menu_close"
61 class="show-only-for-keyboard"
62 label="&closeCmd.label;"
64 accesskey="&closeCmd.accesskey;"
66 <menuitem id="menu_closeWindow"
67 class="show-only-for-keyboard"
69 command="cmd_closeWindow"
71 label="&closeWindow.label;"
72 accesskey="&closeWindow.accesskey;"/>
74 <menuitem id="menu_savePage"
75 label="&savePageCmd.label;"
76 accesskey="&savePageCmd.accesskey;"
78 command="Browser:SavePage"/>
79 <menuitem id="menu_sendLink"
80 label="&emailPageCmd.label;"
81 accesskey="&emailPageCmd.accesskey;"
82 command="Browser:SendLink"/>
84 #if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT)
85 <menuitem id="menu_printSetup"
86 label="&printSetupCmd.label;"
87 accesskey="&printSetupCmd.accesskey;"
88 command="cmd_pageSetup"/>
91 <menuitem id="menu_printPreview"
92 label="&printPreviewCmd.label;"
93 accesskey="&printPreviewCmd.accesskey;"
94 command="cmd_printPreview"/>
96 <menuitem id="menu_print"
97 label="&printCmd.label;"
98 accesskey="&printCmd.accesskey;"
100 command="cmd_print"/>
102 <menuitem id="goOfflineMenuitem"
103 label="&goOfflineCmd.label;"
104 accesskey="&goOfflineCmd.accesskey;"
106 observes="workOfflineMenuitemState"
107 oncommand="BrowserOffline.toggleOfflineStatus();"/>
108 <menuitem id="menu_FileQuitItem"
110 label="&quitApplicationCmdWin.label;"
111 accesskey="&quitApplicationCmdWin.accesskey;"
114 label="&quitApplicationCmdMac.label;"
116 label="&quitApplicationCmd.label;"
117 accesskey="&quitApplicationCmd.accesskey;"
120 key="key_quitApplication"
123 command="cmd_quitApplication"/>
127 <menu id="edit-menu" label="&editMenu.label;"
128 accesskey="&editMenu.accesskey;">
129 <menupopup id="menu_EditPopup"
130 onpopupshowing="updateEditUIVisibility()"
131 onpopuphidden="updateEditUIVisibility()">
132 <menuitem id="menu_undo"
133 label="&undoCmd.label;"
135 accesskey="&undoCmd.accesskey;"
137 <menuitem id="menu_redo"
138 label="&redoCmd.label;"
140 accesskey="&redoCmd.accesskey;"
143 <menuitem id="menu_cut"
144 label="&cutCmd.label;"
146 accesskey="&cutCmd.accesskey;"
148 <menuitem id="menu_copy"
149 label="©Cmd.label;"
151 accesskey="©Cmd.accesskey;"
153 <menuitem id="menu_paste"
154 label="&pasteCmd.label;"
156 accesskey="&pasteCmd.accesskey;"
157 command="cmd_paste"/>
158 <menuitem id="menu_delete"
159 label="&deleteCmd.label;"
161 accesskey="&deleteCmd.accesskey;"
162 command="cmd_delete"/>
164 <menuitem id="menu_selectAll"
165 label="&selectAllCmd.label;"
167 accesskey="&selectAllCmd.accesskey;"
168 command="cmd_selectAll"/>
170 <menuitem id="menu_find"
171 label="&findOnCmd.label;"
172 accesskey="&findOnCmd.accesskey;"
175 <menuitem id="menu_findAgain"
176 class="show-only-for-keyboard"
177 label="&findAgainCmd.label;"
178 accesskey="&findAgainCmd.accesskey;"
180 command="cmd_findAgain"/>
181 <menuseparator hidden="true" id="textfieldDirection-separator"/>
182 <menuitem id="textfieldDirection-swap"
183 command="cmd_switchTextDirection"
184 key="key_switchTextDirection"
185 label="&bidiSwitchTextDirectionItem.label;"
186 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
191 <menuitem id="menu_preferences"
192 label="&preferencesCmdUnix.label;"
193 accesskey="&preferencesCmdUnix.accesskey;"
194 oncommand="openPreferences();"/>
200 <menu id="view-menu" label="&viewMenu.label;"
201 accesskey="&viewMenu.accesskey;">
202 <menupopup id="menu_viewPopup"
203 onpopupshowing="updateCharacterEncodingMenuState();">
204 <menu id="viewToolbarsMenu"
205 label="&viewToolbarsMenu.label;"
206 accesskey="&viewToolbarsMenu.accesskey;">
207 <menupopup onpopupshowing="onViewToolbarsPopupShowing(event);">
209 <menuitem id="menu_customizeToolbars"
210 label="&viewCustomizeToolbar.label;"
211 accesskey="&viewCustomizeToolbar.accesskey;"
212 command="cmd_CustomizeToolbars"/>
215 <menu id="viewSidebarMenuMenu"
216 label="&viewSidebarMenu.label;"
217 accesskey="&viewSidebarMenu.accesskey;">
218 <menupopup id="viewSidebarMenu">
219 <menuitem id="menu_bookmarksSidebar"
220 key="viewBookmarksSidebarKb"
221 observes="viewBookmarksSidebar"/>
222 <menuitem id="menu_historySidebar"
223 key="key_gotoHistory"
224 observes="viewHistorySidebar"
225 label="&historyButton.label;"/>
226 <!-- Service providers with sidebars are inserted between these two menuseperators -->
227 <menuseparator hidden="true"/>
228 <menuseparator class="social-provider-menu" hidden="true"/>
232 <menu id="viewFullZoomMenu" label="&fullZoom.label;"
233 accesskey="&fullZoom.accesskey;"
234 onpopupshowing="FullZoom.updateMenu();">
236 <menuitem id="menu_zoomEnlarge"
237 key="key_fullZoomEnlarge"
238 label="&fullZoomEnlargeCmd.label;"
239 accesskey="&fullZoomEnlargeCmd.accesskey;"
240 command="cmd_fullZoomEnlarge"/>
241 <menuitem id="menu_zoomReduce"
242 key="key_fullZoomReduce"
243 label="&fullZoomReduceCmd.label;"
244 accesskey="&fullZoomReduceCmd.accesskey;"
245 command="cmd_fullZoomReduce"/>
247 <menuitem id="menu_zoomReset"
248 key="key_fullZoomReset"
249 label="&fullZoomResetCmd.label;"
250 accesskey="&fullZoomResetCmd.accesskey;"
251 command="cmd_fullZoomReset"/>
253 <menuitem id="toggle_zoom"
254 label="&fullZoomToggleCmd.label;"
255 accesskey="&fullZoomToggleCmd.accesskey;"
257 command="cmd_fullZoomToggle"
261 <menu id="pageStyleMenu" label="&pageStyleMenu.label;"
262 accesskey="&pageStyleMenu.accesskey;" observes="isImage">
263 <menupopup onpopupshowing="gPageStyleMenu.fillPopup(this);">
264 <menuitem id="menu_pageStyleNoStyle"
265 label="&pageStyleNoStyle.label;"
266 accesskey="&pageStyleNoStyle.accesskey;"
267 oncommand="gPageStyleMenu.disableStyle();"
269 <menuitem id="menu_pageStylePersistentOnly"
270 label="&pageStylePersistentOnly.label;"
271 accesskey="&pageStylePersistentOnly.accesskey;"
272 oncommand="gPageStyleMenu.switchStyleSheet('');"
278 #include browser-charsetmenu.inc
281 <menuitem id="enterFullScreenItem"
282 accesskey="&enterFullScreenCmd.accesskey;"
283 label="&enterFullScreenCmd.label;"
284 key="key_fullScreen">
285 <observes element="View:FullScreen" attribute="oncommand"/>
286 <observes element="View:FullScreen" attribute="disabled"/>
288 <menuitem id="exitFullScreenItem"
289 accesskey="&exitFullScreenCmd.accesskey;"
290 label="&exitFullScreenCmd.label;"
293 <observes element="View:FullScreen" attribute="oncommand"/>
294 <observes element="View:FullScreen" attribute="disabled"/>
297 <menuitem id="fullScreenItem"
298 accesskey="&fullScreenCmd.accesskey;"
299 label="&fullScreenCmd.label;"
302 observes="View:FullScreen"/>
304 <menuitem id="menu_showAllTabs"
306 accesskey="&showAllTabsCmd.accesskey;"
307 label="&showAllTabsCmd.label;"
308 command="Browser:ShowAllTabs"
309 key="key_showAllTabs"/>
310 <menuseparator hidden="true" id="documentDirection-separator"/>
311 <menuitem id="documentDirection-swap"
313 label="&bidiSwitchPageDirectionItem.label;"
314 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
315 oncommand="SwitchDocumentDirection(window.content)"/>
319 <menu id="history-menu"
320 label="&historyMenu.label;"
321 accesskey="&historyMenu.accesskey;">
322 <menupopup id="goPopup"
326 oncommand="this.parentNode._placesView._onCommand(event);"
327 onclick="checkForMiddleClick(this, event);"
328 onpopupshowing="if (!this.parentNode._placesView)
329 new HistoryMenu(event);"
331 popupsinherittooltip="true">
332 <menuitem id="menu_showAllHistory"
333 label="&showAllHistoryCmd2.label;"
335 key="showAllHistoryKb"
337 command="Browser:ShowAllHistory"/>
338 <menuitem id="sanitizeItem"
339 label="&clearRecentHistory.label;"
341 command="Tools:Sanitize"/>
342 <menuseparator id="sanitizeSeparator"/>
343 #ifdef MOZ_SERVICES_SYNC
344 <menuitem id="sync-tabs-menuitem"
345 class="syncTabsMenuItem"
346 label="&syncTabsMenu2.label;"
347 oncommand="BrowserOpenSyncTabs();"
350 <menuitem id="historyRestoreLastSession"
351 label="&historyRestoreLastSession.label;"
352 command="Browser:RestoreLastSession"/>
353 <menu id="historyUndoMenu"
354 class="recentlyClosedTabsMenu"
355 label="&historyUndoMenu.label;"
357 <menupopup id="historyUndoPopup"
361 onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoSubmenu();"/>
363 <menu id="historyUndoWindowMenu"
364 class="recentlyClosedWindowsMenu"
365 label="&historyUndoWindowMenu.label;"
367 <menupopup id="historyUndoWindowPopup"
371 onpopupshowing="document.getElementById('history-menu')._placesView.populateUndoWindowSubmenu();"/>
373 <menuseparator id="startHistorySeparator"
374 class="hide-if-empty-places-result"/>
378 <menu id="bookmarksMenu"
379 label="&bookmarksMenu.label;"
380 accesskey="&bookmarksMenu.accesskey;"
381 ondragenter="PlacesMenuDNDHandler.onDragEnter(event);"
382 ondragover="PlacesMenuDNDHandler.onDragOver(event);"
383 ondrop="PlacesMenuDNDHandler.onDrop(event);">
384 <menupopup id="bookmarksMenuPopup"
388 context="placesContext"
389 openInTabs="children"
390 oncommand="BookmarksEventHandler.onCommand(event, this.parentNode._placesView);"
391 onclick="BookmarksEventHandler.onClick(event, this.parentNode._placesView);"
392 onpopupshowing="BookmarkingUI.onMainMenuPopupShowing(event);
393 if (!this.parentNode._placesView)
394 new PlacesMenu(event, 'place:folder=BOOKMARKS_MENU');"
395 tooltip="bhTooltip" popupsinherittooltip="true">
396 <menuitem id="bookmarksShowAll"
397 label="&showAllBookmarks2.label;"
398 command="Browser:ShowAllBookmarks"
399 key="manBookmarkKb"/>
400 <menuseparator id="organizeBookmarksSeparator"/>
401 <menuitem id="menu_bookmarkThisPage"
402 command="Browser:AddBookmarkAs"
403 observes="bookmarkThisPageBroadcaster"
404 key="addBookmarkAsKb"/>
405 <menuitem id="subscribeToPageMenuitem"
407 class="menuitem-iconic"
409 label="&subscribeToPageMenuitem.label;"
410 oncommand="return FeedHandler.subscribeToFeed(null, event);"
411 onclick="checkForMiddleClick(this, event);"
412 observes="singleFeedMenuitemState"/>
413 <menu id="subscribeToPageMenupopup"
417 label="&subscribeToPageMenupopup.label;"
418 observes="multipleFeedsMenuState">
419 <menupopup id="subscribeToPageSubmenuMenupopup"
420 onpopupshowing="return FeedHandler.buildFeedList(event.target);"
421 oncommand="return FeedHandler.subscribeToFeed(null, event);"
422 onclick="checkForMiddleClick(this, event);"/>
424 <menuitem id="menu_bookmarkAllTabs"
425 label="&addCurPagesCmd.label;"
426 class="show-only-for-keyboard"
427 command="Browser:BookmarkAllTabs"
428 key="bookmarkAllTabsKb"/>
429 <menuseparator id="bookmarksToolbarSeparator"/>
430 <menu id="bookmarksToolbarFolderMenu"
431 class="menu-iconic bookmark-item"
432 label="&personalbarCmd.label;"
434 <menupopup id="bookmarksToolbarFolderPopup"
438 context="placesContext"
439 onpopupshowing="if (!this.parentNode._placesView)
440 new PlacesMenu(event, 'place:folder=TOOLBAR');"/>
442 <menuseparator id="bookmarksMenuItemsSeparator"/>
443 <!-- Bookmarks menu items -->
444 <menuseparator builder="end"
445 class="hide-if-empty-places-result"/>
446 <menuitem id="menu_unsortedBookmarks"
447 label="&unsortedBookmarksCmd.label;"
448 oncommand="PlacesCommandHook.showPlacesOrganizer('UnfiledBookmarks');"/>
452 <menu id="tools-menu"
453 label="&toolsMenu.label;"
454 accesskey="&toolsMenu.accesskey;">
455 <menupopup id="menu_ToolsPopup"
456 #ifdef MOZ_SERVICES_SYNC
457 # We have to use setTimeout() here to avoid a flickering menu bar when opening
458 # the Tools menu, see bug 970769. This can be removed once we got rid of the
459 # event loop spinning in Weave.Status._authManager.
460 onpopupshowing="setTimeout(() => gSyncUI.updateUI());"
463 <menuitem id="menu_openDownloads"
464 label="&downloads.label;"
465 accesskey="&downloads.accesskey;"
466 key="key_openDownloads"
467 command="Tools:Downloads"/>
468 <menuitem id="menu_openAddons"
469 label="&addons.label;"
470 accesskey="&addons.accesskey;"
472 command="Tools:Addons"/>
473 #ifdef MOZ_SERVICES_SYNC
474 <!-- only one of sync-setup or sync-menu will be showing at once -->
475 <menuitem id="sync-setup"
476 label="&syncSetup.label;"
477 accesskey="&syncSetup.accesskey;"
478 observes="sync-setup-state"
479 oncommand="gSyncUI.openSetup()"/>
480 <menuitem id="sync-syncnowitem"
481 label="&syncSyncNowItem.label;"
482 accesskey="&syncSyncNowItem.accesskey;"
483 observes="sync-syncnow-state"
484 oncommand="gSyncUI.doSync(event);"/>
485 <menuitem id="sync-reauthitem"
486 label="&syncReAuthItem.label;"
487 accesskey="&syncReAuthItem.accesskey;"
488 observes="sync-reauth-state"
489 oncommand="gSyncUI.openSignInAgainPage();"/>
491 <menuseparator id="devToolsSeparator"/>
492 <menu id="webDeveloperMenu"
493 label="&webDeveloperMenu.label;"
494 accesskey="&webDeveloperMenu.accesskey;">
495 <menupopup id="menuWebDeveloperPopup">
496 <menuitem id="menu_devToolbox"
497 observes="devtoolsMenuBroadcaster_DevToolbox"
498 accesskey="&devToolboxMenuItem.accesskey;"/>
499 <menuseparator id="menu_devtools_separator"/>
500 <menuitem id="menu_devToolbar"
501 observes="devtoolsMenuBroadcaster_DevToolbar"
502 accesskey="&devToolbarMenu.accesskey;"/>
503 <menuitem id="menu_devAppMgr"
504 observes="devtoolsMenuBroadcaster_DevAppMgr"
505 accesskey="&devAppMgrMenu.accesskey;"/>
506 <menuitem id="menu_webide"
507 observes="devtoolsMenuBroadcaster_webide"
508 accesskey="&webide.accesskey;"/>
509 <menuitem id="menu_browserToolbox"
510 observes="devtoolsMenuBroadcaster_BrowserToolbox"
511 accesskey="&browserToolboxMenu.accesskey;"/>
512 <menuitem id="menu_browserConsole"
513 observes="devtoolsMenuBroadcaster_BrowserConsole"
514 accesskey="&browserConsoleCmd.accesskey;"/>
515 <menuitem id="menu_responsiveUI"
516 observes="devtoolsMenuBroadcaster_ResponsiveUI"
517 accesskey="&responsiveDesignTool.accesskey;"/>
518 <menuitem id="menu_eyedropper"
519 observes="devtoolsMenuBroadcaster_Eyedropper"
520 accesskey="&eyedropper.accesskey;"/>
521 <menuitem id="menu_scratchpad"
522 observes="devtoolsMenuBroadcaster_Scratchpad"
523 accesskey="&scratchpad.accesskey;"/>
524 <menuitem id="menu_pageSource"
525 observes="devtoolsMenuBroadcaster_PageSource"
526 accesskey="&pageSourceCmd.accesskey;"/>
527 <menuitem id="javascriptConsole"
528 observes="devtoolsMenuBroadcaster_ErrorConsole"
529 accesskey="&errorConsoleCmd.accesskey;"/>
530 <menuitem id="menu_devtools_connect"
531 observes="devtoolsMenuBroadcaster_connect"/>
532 <menuseparator id="devToolsEndSeparator"/>
533 <menuitem id="getMoreDevtools"
534 observes="devtoolsMenuBroadcaster_GetMoreTools"
535 accesskey="&getMoreDevtoolsCmd.accesskey;"/>
538 <menuitem id="menu_pageInfo"
539 accesskey="&pageInfoCmd.accesskey;"
540 label="&pageInfoCmd.label;"
544 command="View:PageInfo"/>
546 <menuseparator id="prefSep"/>
547 <menuitem id="menu_preferences"
548 label="&preferencesCmd2.label;"
549 accesskey="&preferencesCmd2.accesskey;"
550 oncommand="openPreferences();"/>
556 <menu id="windowMenu" />
558 <menu id="helpMenu" />