[webkit-changes] [WebKit/WebKit] b0a7f8: [ImageCapture] Reject promises synchronously when ...
Eric Carlson
noreply at github.com
Sat Feb 10 20:36:26 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b0a7f8b8febb1740572fb77bf5cc615d30d34b50
https://github.com/WebKit/WebKit/commit/b0a7f8b8febb1740572fb77bf5cc615d30d34b50
Author: Eric Carlson <eric.carlson at apple.com>
Date: 2024-02-10 (Sat, 10 Feb 2024)
Changed paths:
M LayoutTests/fast/mediastream/image-capture-get-photo-capabilities-expected.txt
M LayoutTests/fast/mediastream/image-capture-get-photo-capabilities.html
M LayoutTests/fast/mediastream/image-capture-get-photo-settings-expected.txt
M LayoutTests/fast/mediastream/image-capture-get-photo-settings.html
M LayoutTests/fast/mediastream/image-capture-take-photo-expected.txt
M LayoutTests/fast/mediastream/image-capture-take-photo.html
M Source/WebCore/Modules/mediastream/ImageCapture.cpp
M Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp
Log Message:
-----------
[ImageCapture] Reject promises synchronously when track has ended
https://bugs.webkit.org/show_bug.cgi?id=266297
rdar://119564866
Reviewed by Youenn Fablet.
Reject takePhoto, getPhotoCapabilities, and getPhotoSettings promises synchronously
when called after a track has ended to match the spec.
* LayoutTests/fast/mediastream/image-capture-get-photo-capabilities-expected.txt:
* LayoutTests/fast/mediastream/image-capture-get-photo-capabilities.html:
* LayoutTests/fast/mediastream/image-capture-get-photo-settings-expected.txt:
* LayoutTests/fast/mediastream/image-capture-get-photo-settings.html:
* LayoutTests/fast/mediastream/image-capture-take-photo-expected.txt:
* LayoutTests/fast/mediastream/image-capture-take-photo.html:
* Source/WebCore/Modules/mediastream/ImageCapture.cpp:
(WebCore::ImageCapture::takePhoto):
(WebCore::ImageCapture::getPhotoCapabilities):
(WebCore::ImageCapture::getPhotoSettings):
* Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp:
(WebCore::MediaStreamTrack::takePhoto):
(WebCore::MediaStreamTrack::getPhotoCapabilities):
(WebCore::MediaStreamTrack::getPhotoSettings):
Canonical link: https://commits.webkit.org/274437@main
More information about the webkit-changes
mailing list