"Reveal in Layers Tab" context menu option should not be available if the Layers...
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 19:11:01 +0000 (19:11 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 19:11:01 +0000 (19:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196009

Reviewed by Joseph Pecoraro.

* UserInterface/Views/ContextMenuUtilities.js:
(WI.appendContextMenuItemsForDOMNode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243224 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js

index 6a90263..8905fb9 100644 (file)
@@ -1,5 +1,15 @@
 2019-03-20  Devin Rousso  <drousso@apple.com>
 
+        "Reveal in Layers Tab" context menu option should not be available if the Layers Tab has not been enabled
+        https://bugs.webkit.org/show_bug.cgi?id=196009
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/ContextMenuUtilities.js:
+        (WI.appendContextMenuItemsForDOMNode):
+
+2019-03-20  Devin Rousso  <drousso@apple.com>
+
         Web Inspector: Console: add a setting for controlling auto-expansion of Trace messages
         https://bugs.webkit.org/show_bug.cgi?id=195690
 
index 848edd1..6502387 100644 (file)
@@ -232,7 +232,7 @@ WI.appendContextMenuItemsForDOMNode = function(contextMenu, domNode, options = {
         });
     }
 
-    if (!options.excludeRevealLayer && window.LayerTreeAgent && attached) {
+    if (WI.settings.experimentalEnableLayersTab.value && window.LayerTreeAgent && attached) {
         contextMenu.appendItem(WI.UIString("Reveal in Layers Tab"), () => {
             WI.showLayersTab({nodeToSelect: domNode});
         });