-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WPT webcodecs videoDecoder-codec-specific.https.any.html test is fail…
…ing due to resolve promises out of an event queue task https://bugs.webkit.org/show_bug.cgi?id=258814 rdar://111692360 Reviewed by Eric Carlson. The WPT test change is coming from upstream and checks that the flush promise callbacks are executed before the error event handlers. The implementation is correctly resolving the promises before scheduling a task to fire the error event. But the promises are resolved outside of the event loop and are thus delayed to a loater task, and the error event fires before. To prevent this, we are changing the way the internal decoder is calling back into WebCodecsVideoDecoder code. Instead of just hoping to the right thread, we are now hoping to the right thread and then enqueueing a task. We add a weakThis check there so that it is no longer necessary on each callback. Covered by updated tests. * LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoDecoder-codec-specific.https.any.js: * Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp: (WebCore::WebCodecsVideoDecoder::configure): (WebCore::WebCodecsVideoDecoder::decode): (WebCore::WebCodecsVideoDecoder::flush): (WebCore::WebCodecsVideoDecoder::resetDecoder): Canonical link: https://commits.webkit.org/265843@main
- Loading branch information
Showing
2 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters