⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243224 in webkit


Ignore:
Timestamp:
Mar 20, 2019, 12:11:01 PM (7 years ago)
Author:
Devin Rousso
Message:

"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):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243220 r243224  
     12019-03-20  Devin Rousso  <drousso@apple.com>
     2
     3        "Reveal in Layers Tab" context menu option should not be available if the Layers Tab has not been enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=196009
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/ContextMenuUtilities.js:
     9        (WI.appendContextMenuItemsForDOMNode):
     10
    1112019-03-20  Devin Rousso  <drousso@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js

    r243152 r243224  
    233233    }
    234234
    235     if (!options.excludeRevealLayer && window.LayerTreeAgent && attached) {
     235    if (WI.settings.experimentalEnableLayersTab.value && window.LayerTreeAgent && attached) {
    236236        contextMenu.appendItem(WI.UIString("Reveal in Layers Tab"), () => {
    237237            WI.showLayersTab({nodeToSelect: domNode});
Note: See TracChangeset for help on using the changeset viewer.