Bug 1496138 - Don't show Web Replay menu on unsupported platforms, r=jlast.
authorBrian Hackett <bhackett1024@gmail.com>
Thu, 04 Oct 2018 04:45:47 -1000
changeset 487939 b1c1261376ee721aa9a4bb3e5725ba038d3a57b6
parent 487938 4b136b18becf633340644ea30a16100849c63719
child 487940 d0dbcdcab622712fecfa53d344f1876e971f704e
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersjlast
bugs1496138
milestone64.0a1
Bug 1496138 - Don't show Web Replay menu on unsupported platforms, r=jlast.
devtools/client/webreplay/menu.js
--- a/devtools/client/webreplay/menu.js
+++ b/devtools/client/webreplay/menu.js
@@ -66,16 +66,17 @@ const menuItems = [
   { id: "devtoolsSaveRecording", command: SaveRecording },
   { id: "devtoolsReplayNewTab", command: ReplayNewTab },
 ];
 
 exports.addWebReplayMenu = function(doc) {
   const menu = doc.createXULElement("menu");
   menu.id = "menu_webreplay";
   menu.setAttribute("label", l10n("devtoolsWebReplay.label"));
+  menu.setAttribute("hidden", "true");
 
   const popup = doc.createXULElement("menupopup");
   popup.id = "menupopup_webreplay";
   menu.appendChild(popup);
 
   for (const { id, command } of menuItems) {
     const menuitem = doc.createXULElement("menuitem");
     menuitem.id = id;