[webkit-changes] [WebKit/WebKit] 506097: Web Inspector: Sources: Sort resources without the...

Jon Davis noreply at github.com
Wed Sep 27 19:21:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5060974c125e844e2b23d23d10e895661cfdd002
      https://github.com/WebKit/WebKit/commit/5060974c125e844e2b23d23d10e895661cfdd002
  Author: Jonathan Davis <jond at apple.com>
  Date:   2023-09-27 (Wed, 27 Sep 2023)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/ResourceTreeElement.js

  Log Message:
  -----------
  Web Inspector: Sources: Sort resources without the file extension first
https://bugs.webkit.org/show_bug.cgi?id=220437
rdar://72905353

Reviewed by Patrick Angle.

Sorting without the file extension first avoids comparing the dot (.) to
longer filenames with the same root string.
(e.g. styles.css and styles-dark.css)

* Source/WebInspectorUI/UserInterface/Views/ResourceTreeElement.js:
(WI.ResourceTreeElement.compareResourceTreeElements.filenameWithoutExtention):
(WI.ResourceTreeElement.compareResourceTreeElements):

Canonical link: https://commits.webkit.org/268557@main




More information about the webkit-changes mailing list