Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9b2ca446ce972db79ff4b9db39e4dfe98dfb44a7
https://github.com/WebKit/WebKit/commit/9b2ca446ce972db79ff4b9db39e4dfe98dfb44a7
Author: Miguel Gomez <[email protected]>
Date: 2025-02-04 (Tue, 04 Feb 2025)
Changed paths:
M Source/WebCore/html/HTMLCanvasElement.cpp
Log Message:
-----------
[GTK][WPE] Crash loading https://webassembly.sh/ in CPU rendering mode
https://bugs.webkit.org/show_bug.cgi?id=286674
Reviewed by Carlos Garcia Campos.
Fix the check to paint the contents on the canvas when its ImageBuffer hasn't
been created yet: if we do need to paint the transparent black rectangle, do
not call surfaceBufferToImageBuffer() because that will trigger the creation
of the ImageBuffer, potentially changing the canvas into an accelerated one in
the middle of the paint, which will cause a crash. Paint the transparent black
rectangle using fillRect() instead.
* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::paint):
Canonical link: https://commits.webkit.org/289775@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes