Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Network panel: Disable context menu items for incomple…
…te resources https://bugs.webkit.org/show_bug.cgi?id=242035 Reviewed by Devin Rousso. Information collected about resources loaded before Web Inspector was opened is missing most metadata, like resource timing data, HTTP method, request headers, etc. * Source/WebInspectorUI/UserInterface/Models/Resource.js: (WI.Resource.prototype.get hasMetadata): Add a new member to quickly check if the resource has metadata. * Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js: In absence of metadata, context menu items to copy as cURL, copy as fetch, copy HTTP request and copy HTTP response should not be shown to avoid getting useless output. Canonical link: https://commits.webkit.org/251987@main
- Loading branch information