Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 17316658e8a0195c623797b914956a204cbfed83
      
https://github.com/WebKit/WebKit/commit/17316658e8a0195c623797b914956a204cbfed83
  Author: Aditya Keerthi <[email protected]>
  Date:   2025-05-27 (Tue, 27 May 2025)

  Changed paths:
    M Source/WebCore/rendering/mac/RenderThemeMac.mm

  Log Message:
  -----------
  [macOS] Manually assigning a file to input.files renders incorrect file name
https://bugs.webkit.org/show_bug.cgi?id=293584
rdar://152048377

Reviewed by Simon Fraser and Abrar Rahman Protyasha.

When a `File` is created programmatically, it has no "path".
`-[NSFileManager displayNameAtPath:]` returns a non-sensical value when
an empty path is passed in, resulting the issue described in the title.

Fix by falling back to the filename if the path is empty.

No new tests since the displayed file name is only "exposed" at paint time,
and it is not possible to make a reference without having this fix.

* Source/WebCore/rendering/mac/RenderThemeMac.mm:
(WebCore::RenderThemeMac::fileListNameForWidth const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to