Bug 1531254 - Port bug 1531119 - Remove editMenuCommands.inc.xul and make editMenuOverlay.js in charge of constructing the relevant commandset DOM. r=darktrojan
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 28 Feb 2019 09:09:53 +0200
changeset 26142 2ab8c7d1987f
parent 26141 f50cb5efc43d
child 26143 fd6b3628b5bc
push id15692
push usergeoff@darktrojan.net
push dateThu, 21 Mar 2019 23:14:33 +0000
treeherdercomm-central@2ab8c7d1987f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdarktrojan
bugs1531254, 1531119
Bug 1531254 - Port bug 1531119 - Remove editMenuCommands.inc.xul and make editMenuOverlay.js in charge of constructing the relevant commandset DOM. r=darktrojan
common/src/viewSource.xul
--- a/common/src/viewSource.xul
+++ b/common/src/viewSource.xul
@@ -37,25 +37,25 @@
   <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
   <script type="application/javascript" src="chrome://global/content/printUtils.js"/>
 #ifndef MOZ_SUITE
 <script type="application/javascript" src="chrome://messenger/content/mailCore.js"/>
 #endif
   <script type="application/javascript" src="chrome://messenger/content/viewSource.js"/>
   <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
   <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
+  <script type="application/javascript" src="chrome://global/content/editMenuOverlay.js"/>
 
   <stringbundle id="viewSourceBundle" src="chrome://messenger/locale/viewSource.properties"/>
 
   <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
   <command id="cmd_print" oncommand="PrintUtils.printWindow(gBrowser.outerWindowID, gBrowser);"/>
   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/>
   <command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
   <command id="cmd_close" oncommand="window.close();"/>
-#includesubst @TOOLKIT_DIR@/content/editMenuCommands.inc.xul
   <command id="cmd_find"
            oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
   <command id="cmd_findAgain"
            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(false);"/>
   <command id="cmd_findPrevious"
            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(true);"/>
 #ifdef XP_MACOSX
   <command id="cmd_findSelection"