Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2f073190fecd8722c04b080dd747a9aaeeda5584
      
https://github.com/WebKit/WebKit/commit/2f073190fecd8722c04b080dd747a9aaeeda5584
  Author: Said Abou-Hallawa <[email protected]>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
    M Source/WebKit/GPUProcess/media/RemoteImageDecoderAVFProxy.cpp
    M Source/WebKit/WebProcess/GPU/media/RemoteImageDecoderAVFManager.cpp

  Log Message:
  -----------
  Before creating a remote AVF image decoder, the mime-type should be checked 
if it is supported
https://bugs.webkit.org/show_bug.cgi?id=311953
rdar://172058208

Reviewed by Jer Noble.

RemoteImageDecoderAVFProxy::createDecoder() should MESSAGE_CHECK() whether the
mime-type is supported or not before calling create(). GPU process should not
trust WebProcess for this check and should terminate itself.

* Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm:
(WebCore::ImageDecoderAVFObjC::create):
* Source/WebKit/GPUProcess/media/RemoteImageDecoderAVFProxy.cpp:
(WebKit::RemoteImageDecoderAVFProxy::createDecoder):
* Source/WebKit/WebProcess/GPU/media/RemoteImageDecoderAVFManager.cpp:
(WebKit::RemoteImageDecoderAVFManager::createImageDecoder):

Originally-landed-as: 305413.655@rapid/safari-7624.2.5.110-branch 
(2669cd39c908). rdar://176059127
Canonical link: https://commits.webkit.org/315115@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to