Skip to content
Permalink
Browse files
Web Inspector: Sources Tab: adding a new header to a request local ov…
…erride doesn't show it

https://bugs.webkit.org/show_bug.cgi?id=240733

Reviewed by Patrick Angle.

* Source/WebInspectorUI/UserInterface/Views/LocalResourceOverridePopover.js:
(WI.LocalResourceOverridePopover.prototype.show):

Canonical link: https://commits.webkit.org/250821@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed May 20, 2022
1 parent b832db4 commit 0733c2818ab4a2e2c8f2be3a516fe83dd5dee6b0
Showing 1 changed file with 4 additions and 2 deletions.
@@ -362,8 +362,10 @@ WI.LocalResourceOverridePopover = class LocalResourceOverridePopover extends WI.
};

let toggleHeadersDataGridVisibility = (force) => {
this._headersDataGrid.element.hidden = force !== undefined ? force : !this._headersDataGrid.hasChildren;
this._headersDataGrid.updateLayoutIfNeeded();
let hidden = force ?? !this._headersDataGrid.hasChildren;
this._headersDataGrid.element.hidden = hidden;
if (!hidden)
this._headersDataGrid.updateLayout();
};

let contentTypeDataGridNode = addDataGridNodeForHeader(WI.unlocalizedString("Content-Type"), valueData.mimeType || placeholderData.mimeType, {selectable: false, editable: false, classNames: ["header-content-type"]});

0 comments on commit 0733c28

Please sign in to comment.