profiler
profiler copied to clipboard
Misleading URL in "Collapse resource" context menu item
Profile: https://share.firefox.dev/3XBbdcU
For JS code from the web, we create one "resource" for the entire origin, e.g. one resource for all URLs with the origin "https://abs.twimg.com". But in the context menu for collapsing a resource, it has the full URL, which is confusing.
Steps to reproduce:
- Go to https://share.firefox.dev/3XBbdcU
- Right-click one of the Twitter JS functions in the call tree.
- Notice how it says "Collapse https://abs.twimg.com/responsive-web/...", i.e. it contains the full URL.
- Click the menuitem.
- Notice how not just that one URL, but all functions from https://abs.twimg.com have been collapsed.
Instead, the context menu item should say "Collapse https://abs.twimg.com/" with the rest of the URL omitted.
┆Issue is synchronized with this Jira Task
Interesting, this is indeed confusing. Do you think theresource should stay like this (the URL) rather than the full js file?
I'd say the current behavior of making the entire "origin" one resource is good enough. I haven't anyone see ask for the ability to collapse an individual JS file.