Skip to content

Commit

Permalink
Web Inspector: Cookies for extensions show UUID instead of extension …
Browse files Browse the repository at this point in the history
…name in Storage tab

https://bugs.webkit.org/show_bug.cgi?id=247903
rdar://101966366

Reviewed by Timothy Hatcher.

`CookieStorageTreeElement` was the only subclass of `StorageTreeElement` not using `WI.displayNameForHost` to generate a
display name, which exists to convert extension UUIDs into a friendly name. Non-extension cookies will still just use
the host for its name.

* Source/WebInspectorUI/UserInterface/Views/CookieStorageTreeElement.js:
(WI.CookieStorageTreeElement.prototype.get name):

Canonical link: https://commits.webkit.org/256695@main
  • Loading branch information
patrickangle committed Nov 15, 2022
1 parent 0ae33bb commit 6cf49cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ WI.CookieStorageTreeElement = class CookieStorageTreeElement extends WI.StorageT

get name()
{
return this.representedObject.host;
return WI.displayNameForHost(this.representedObject.host);
}

get categoryName()
Expand Down

0 comments on commit 6cf49cf

Please sign in to comment.