| Summary: | Have HTMLCanvasElement clear its buffer as soon as its script execution context goes away | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | Canvas | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | REOPENED --- | ||||||||
| Severity: | Normal | CC: | changseok, dino, esprehn+autocc, ews-watchlist, ggaren, gyuyoung.kim, sabouhallawa, sam, simon.fraser, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2021-04-13 12:20:06 PDT
Created attachment 425896 [details]
Patch
Created attachment 425906 [details]
Patch
This is web-observable. Comment on attachment 425906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425906&action=review Additional motivation: https://bugs.webkit.org/show_bug.cgi?id=228747 > Source/WebCore/html/HTMLCanvasElement.cpp:1028 > + setImageBuffer(nullptr); I'm guessing we'd need to slurp some more code from the destructor to fix the assertions. Reopening because Sam and Chris and I all think we should try this again when we have lots of bake time :) (Also, we already do it for WebGL) |