Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 60134b26c7259eac53c8cbb9cca7ea5887481ea7
      
https://github.com/WebKit/WebKit/commit/60134b26c7259eac53c8cbb9cca7ea5887481ea7
  Author: Etienne Segonzac <s...@apple.com>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp

  Log Message:
  -----------
  Refine the mimeType detection for Image Fullscreen using 
`image->filenameExtension()`
https://bugs.webkit.org/show_bug.cgi?id=272330
<rdar://126018476>

Reviewed by Sihui Liu.

For Image Fullscreen, we need a MIME type to build the Quick Look request.
But some images come with a generic `application/octet-stream` MIME
type, yet still display properly inline.

Instead of directly falling back to building a MIME type from the image's URL
extension, use the filename extension generated from the image metadata first.
This should be more reliable.

* Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp:
(WebKit::WebFullScreenManager::enterFullScreenForElement):

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



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

Reply via email to