Bug 220437
| Summary: | Web Inspector: Sources: resources should be sorted not including the extension | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> |
| Component: | Web Inspector | Assignee: | Jon Davis <jond> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | hi, inspector-bugzilla-changes, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Devin Rousso
# STEPS TO REPRODUCE
1. inspect <https://webkit.org/>
2. toggle dark mode (should have `chevron.svg` and `chevron-dark.svg`)
# EXPECTED
`chevron.svg` should be before `chevron-dark.svg`
# ACTUAL
`chevron.svg` is after `chevron-dark.svg`
I believe this is because Web Inspector does a `String.prototype.localeCompare` against the titles as they are shown in the UI which includes the extension. It may be desirable to call `WI.fileExtensionForFilename` before sorting and only include the extension if the filename is the same.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/72905353>
Jon Davis
Pull request: https://github.com/WebKit/WebKit/pull/18298
EWS
Committed 268557@main (5060974c125e): <https://commits.webkit.org/268557@main>
Reviewed commits have been landed. Closing PR #18298 and removing active labels.
Jon Davis
Re-opening to address an enhancement recommended during review.
Jon Davis
Pull request: https://github.com/WebKit/WebKit/pull/18350