-
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.
Decoding an SVG off the main thread causes a crash
https://bugs.webkit.org/show_bug.cgi?id=206055 Reviewed by Darin Adler. LayoutTests/imported/w3c: Rebaseline OffscreenCanvas SVG tests. * web-platform-tests/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.image.worker-expected.txt: Source/WebCore: Use BitmapImage::create instead of Image::create in ImageBitmap. This bypasses use of SVGImage and PDFDocumentImage, which are not safe to use off the main thread. No new tests, rebaselined existing tests. * html/ImageBitmap.cpp: (WebCore::ImageBitmap::createFromBuffer): Use BitmapImage instead of Image. * platform/graphics/Image.cpp: (WebCore::Image::create): Add main-thread assert on Image creation. LayoutTests: Enable OffscreenCanvas SVG tests. * platform/glib/TestExpectations: Canonical link: https://commits.webkit.org/237241@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Chris Lord
committed
May 3, 2021
1 parent
56b7318
commit 8ba49be
Showing
7 changed files
with
50 additions
and
10 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
2 changes: 1 addition & 1 deletion
2
.../offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.image.worker-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
PASS drawImage with zero-sized source rectangle from image throws INDEX_SIZE_ERR | ||
PASS drawImage with zero-sized source rectangle from image draws nothing without exception | ||
|
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
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