Changeset 288533 in webkit
- Timestamp:
- Jan 24, 2022 7:21:04 PM (6 months ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 1 deleted
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Localizations/en.lproj/localizedStrings.js (modified) (3 diffs)
-
UserInterface/Images/IgnoreCaches.svg (deleted)
-
UserInterface/Views/NetworkTableContentView.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r288492 r288533 1 2022-01-24 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Network: give the Ignore Caches button a label so it's more visible and immediately understandable 4 https://bugs.webkit.org/show_bug.cgi?id=235539 5 6 Reviewed by Patrick Angle. 7 8 * UserInterface/Views/NetworkTableContentView.js: 9 (WI.NetworkTableContentView): 10 (WI.NetworkTableContentView.prototype.get navigationItems): 11 (WI.NetworkTableContentView.prototype._resourceCachingDisabledSettingChanged): 12 13 * Localizations/en.lproj/localizedStrings.js: 14 15 * UserInterface/Images/IgnoreCaches.svg: Deleted. 16 1 17 2022-01-24 Patrick Angle <pangle@apple.com> 2 18 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r288470 r288533 489 489 localizedStrings["Disable Breakpoint"] = "Disable Breakpoint"; 490 490 localizedStrings["Disable Breakpoints"] = "Disable Breakpoints"; 491 localizedStrings["Disable Caches"] = "Disable Caches"; 491 492 localizedStrings["Disable Descendant Breakpoints"] = "Disable Descendant Breakpoints"; 492 493 localizedStrings["Disable Encryption"] = "Disable Encryption"; … … 792 793 localizedStrings["Ignore"] = "Ignore"; 793 794 localizedStrings["Ignore script when debugging"] = "Ignore script when debugging"; 794 localizedStrings["Ignore the resource cache when loading resources"] = "Ignore the resource cache when loading resources";795 795 localizedStrings["Ignored"] = "Ignored"; 796 796 localizedStrings["Image"] = "Image"; … … 1632 1632 localizedStrings["Use default media styles"] = "Use default media styles"; 1633 1633 localizedStrings["Use fuzzy matching for completion suggestions"] = "Use fuzzy matching for completion suggestions"; 1634 localizedStrings["Use the resource cache when loading resources"] = "Use the resource cache when loading resources";1635 1634 localizedStrings["User Agent"] = "User Agent"; 1636 1635 localizedStrings["User Agent Style Sheet"] = "User Agent Style Sheet"; -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js
r288470 r288533 142 142 // COMPATIBILITY (iOS 10.3): Network.setDisableResourceCaching did not exist. 143 143 if (InspectorBackend.hasCommand("Network.setResourceCachingDisabled")) { 144 let toolTipForDisableResourceCache = WI.UIString("Ignore the resource cache when loading resources"); 145 let activatedToolTipForDisableResourceCache = WI.UIString("Use the resource cache when loading resources"); 146 this._disableResourceCacheNavigationItem = new WI.ActivateButtonNavigationItem("disable-resource-cache", toolTipForDisableResourceCache, activatedToolTipForDisableResourceCache, "Images/IgnoreCaches.svg", 16, 16); 147 this._disableResourceCacheNavigationItem.activated = WI.settings.resourceCachingDisabled.value; 148 this._disableResourceCacheNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.High; 149 this._disableResourceCacheNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._toggleDisableResourceCache, this); 144 this._disableResourceCacheNavigationItem = new WI.CheckboxNavigationItem("network-disable-resource-cache", WI.UIString("Disable Caches"), WI.settings.resourceCachingDisabled.value); 145 this._disableResourceCacheNavigationItem.addEventListener(WI.CheckboxNavigationItem.Event.CheckedDidChange, this._toggleDisableResourceCache, this); 146 147 this._disableResourceCacheNavigationItemGroup = new WI.GroupNavigationItem([this._disableResourceCacheNavigationItem, new WI.DividerNavigationItem]); 148 this._disableResourceCacheNavigationItemGroup.visibilityPriority = WI.NavigationItem.VisibilityPriority.High; 150 149 151 150 WI.settings.resourceCachingDisabled.addEventListener(WI.Setting.Event.Changed, this._resourceCachingDisabledSettingChanged, this); … … 245 244 get navigationItems() 246 245 { 247 let items = [ this._pathComponentsNavigationItemGroup, this._buttonsNavigationItemGroup];248 if (this._disableResourceCacheNavigationItem )249 items.push(this._disableResourceCacheNavigationItem );250 items.push(this._ clearNetworkItemsNavigationItem);246 let items = []; 247 if (this._disableResourceCacheNavigationItemGroup) 248 items.push(this._disableResourceCacheNavigationItemGroup); 249 items.push(this._pathComponentsNavigationItemGroup, this._buttonsNavigationItemGroup, this._clearNetworkItemsNavigationItem); 251 250 return items; 252 251 } … … 1627 1626 _resourceCachingDisabledSettingChanged() 1628 1627 { 1629 this._disableResourceCacheNavigationItem. activated = WI.settings.resourceCachingDisabled.value;1628 this._disableResourceCacheNavigationItem.checked = WI.settings.resourceCachingDisabled.value; 1630 1629 } 1631 1630
Note: See TracChangeset
for help on using the changeset viewer.