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

Changeset 276144 in webkit


Ignore:
Timestamp:
Apr 16, 2021, 10:53:22 AM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Sources: don't show the create local override contextmenu if the navigation item is disabled
https://bugs.webkit.org/show_bug.cgi?id=224647

Reviewed by BJ Burg.

  • UserInterface/Views/ResourceContentView.js:

(WI.ResourceContentView.prototype._populateCreateLocalResourceOverrideContextMenu):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r275982 r276144  
     12021-04-16  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Sources: don't show the create local override contextmenu if the navigation item is disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=224647
     5
     6        Reviewed by BJ Burg.
     7
     8        * UserInterface/Views/ResourceContentView.js:
     9        (WI.ResourceContentView.prototype._populateCreateLocalResourceOverrideContextMenu):
     10
    1112021-04-13  BJ Burg  <bburg@apple.com>
    212
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceContentView.js

    r270604 r276144  
    306306    _populateCreateLocalResourceOverrideContextMenu(contextMenu, event)
    307307    {
     308        if (!this._createLocalResourceOverrideButtonNavigationItem.enabled)
     309            return;
     310
    308311        contextMenu.appendItem(WI.UIString("Create Request Local Override"), () => {
    309312            // Request overrides cannot be created from a file as files don't have network info.
Note: See TracChangeset for help on using the changeset viewer.