[Webkit-unassigned] [Bug 220437] New: Web Inspector: Sources: resources should be sorted not including the extension

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 7 14:29:17 PST 2021


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

            Bug ID: 220437
           Summary: Web Inspector: Sources: resources should be sorted not
                    including the extension
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

# 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210107/940dc7b7/attachment-0001.htm>


More information about the webkit-unassigned mailing list