Bug 312211
| Summary: | REGRESSION(308505@main) - Crash in WebCore::IOSurface::createPlatformContext | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Woodrow <mattwoodrow> |
| Component: | Canvas | Assignee: | Matt Woodrow <mattwoodrow> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Matt Woodrow
HTMLCanvasElement::toBlob calls encodeData(makeRenderingResultsAvailable()… which passes a RefPtr<ImageBuffer>&&.
encodeData then calls ImageBuffer::sinkIntoNativeImage which consumes the ImageBuffer, and takes m_surface out of the backend.
Later on we try to flush the ImageBuffer, and crash because it’s in an invalid state.
<rdar://173305815>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Matt Woodrow
Pull request: https://github.com/WebKit/WebKit/pull/62683
EWS
Committed 311322@main (89356ad2cb98): <https://commits.webkit.org/311322@main>
Reviewed commits have been landed. Closing PR #62683 and removing active labels.