[webkit-changes] [WebKit/WebKit] e62527: Merge back: VideoFrame constructor should throw on...

youennf noreply at github.com
Fri May 26 01:08:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6252767f9ee66c26b208dce0dcb32f8d7958c3d
      https://github.com/WebKit/WebKit/commit/e6252767f9ee66c26b208dce0dcb32f8d7958c3d
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    A LayoutTests/http/wpt/webcodecs/resources/green.png
    A LayoutTests/http/wpt/webcodecs/resources/image.py
    A LayoutTests/http/wpt/webcodecs/webcodecs-crossOrigin.sub-expected.txt
    A LayoutTests/http/wpt/webcodecs/webcodecs-crossOrigin.sub.html
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-canvasImageSource-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub-expected.txt
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp
    M Source/WebCore/css/CSSImageValue.h
    M Source/WebCore/css/typedom/CSSStyleImageValue.h
    M Source/WebCore/html/HTMLImageElement.cpp
    M Source/WebCore/html/HTMLImageElement.h

  Log Message:
  -----------
  Merge back: VideoFrame constructor should throw on tainted CSS images
https://bugs.webkit.org/show_bug.cgi?id=257326
rdar://109803508

Reviewed by Jean-Yves Avenard.

Add a CORS check in VideoFrame constructor code paths.
Covered by added and rebased tests.

* LayoutTests/TestExpectations:
* LayoutTests/http/wpt/webcodecs/resources/green.png: Added.
* LayoutTests/http/wpt/webcodecs/resources/image.py: Added.
(main):
* LayoutTests/http/wpt/webcodecs/webcodecs-crossOrigin.sub-expected.txt: Added.
* LayoutTests/http/wpt/webcodecs/webcodecs-crossOrigin.sub.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-canvasImageSource-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub-expected.txt:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp:
(WebCore::checkImageUsability):
(WebCore::WebCodecsVideoFrame::create):
* Source/WebCore/css/CSSImageValue.h:
* Source/WebCore/css/typedom/CSSStyleImageValue.h:
* Source/WebCore/html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::originClean const):
* Source/WebCore/html/HTMLImageElement.h:

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




More information about the webkit-changes mailing list