Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 25570b9123de10c7a7035d9aa7a1b584abb25fc6
      
https://github.com/WebKit/WebKit/commit/25570b9123de10c7a7035d9aa7a1b584abb25fc6
  Author: Charlie Wolfe <[email protected]>
  Date:   2026-06-17 (Wed, 17 Jun 2026)

  Changed paths:
    A LayoutTests/fast/webcodecs/video-frame-zero-display-size-expected.txt
    A LayoutTests/fast/webcodecs/video-frame-zero-display-size.html
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.cpp

  Log Message:
  -----------
  isValidVideoFrameBufferInit() tests displayWidth/Height presence against 
itself
https://bugs.webkit.org/show_bug.cgi?id=317028
rdar://179514279

Reviewed by Jean-Yves Avenard.

"init.displayWidth && !init.displayWidth" is has_value() && !has_value(), 
always false, so the
zero-dimension rejection was dead code. Dereference the optional 
("!*init.displayWidth") to reject
a zero displayWidth/displayHeight, matching validateVideoFrameInit and the 
spec's
valid-VideoFrameBufferInit check.

Test: fast/webcodecs/video-frame-zero-display-size.html
* LayoutTests/fast/webcodecs/video-frame-zero-display-size-expected.txt: Added.
* LayoutTests/fast/webcodecs/video-frame-zero-display-size.html: Added.
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameAlgorithms.cpp:
(WebCore::isValidVideoFrameBufferInit):

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



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

Reply via email to