Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7958c632dfcf8e36c88b2fb041f67d30a5caac62
      
https://github.com/WebKit/WebKit/commit/7958c632dfcf8e36c88b2fb041f67d30a5caac62
  Author: Simon Pena <[email protected]>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M Source/WebCore/loader/soup/ResourceLoaderSoup.cpp

  Log Message:
  -----------
  [Soup] Attempt a content-type lookup for known resources
https://bugs.webkit.org/show_bug.cgi?id=295698

Reviewed by Michael Catanzaro and Adrian Perez de Castro.

In some platforms, shared-mime-info might not be available, in which
case g_content_type_guess will silently fail, falling back to
"text/plain", without setting result_uncertain to true.

This approach uses MIMETypeRegistry to get the MIME type based on the
path, falling back to g_content_type_guess when that fails.

* Source/WebCore/loader/soup/ResourceLoaderSoup.cpp:
(WebCore::ResourceLoader::loadGResource):

Canonical link: https://commits.webkit.org/297585@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