Refactor canvas shutdown to account for process crashes
Categories
(Core :: Graphics: Canvas2D, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox124 | --- | wontfix |
firefox125 | --- | fixed |
firefox126 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Comment 1•7 months ago
|
||
We previously refactor canvas shutdown to account for the fact that they
needed to be shutdown in conjunction with the DOM worker reference
kept alive by the CanvasManagerChild. Unfortunately if the compositor
process crashes, or otherwise the CanvasManagerChild actor is torn down,
we also prematurely shutdown the canvas when it would previously
fallback to Skia in the content process.
This patch abstracts out canvas shutdown into the CanvasShutdownManager
which has the owning reference to the ThreadSafeWorkerRef. It corrects a
similar bug on the main thread as well for HTMLCanvasElement.
Assignee | ||
Updated•7 months ago
|
Comment 3•7 months ago
|
||
Backed out for causing build bustages on CanvasShutdownManager.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=451234797&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/4872ae54a708638bc5394c4dad81b5ee46da6bfd
Comment 6•7 months ago
|
||
bugherder |
Comment 7•7 months ago
|
||
The patch landed in nightly and beta is affected.
:aosmond, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox125
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 8•7 months ago
|
||
Comment on attachment 9391867 [details]
Bug 1886022 - Refactor canvas shutdown to account for process crashes.
Beta/Release Uplift Approval Request
- User impact if declined: OffscreenCanvas and HTMLCanvasElement may break when the GPU process crashes or runs into IPDL errors
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): It moves us back to the original behaviour used by HTMLCanvasElement expanded to DOM workers. It will be a lot more consistent.
- String changes made/needed:
- Is Android affected?: Yes
Comment 9•7 months ago
|
||
Comment on attachment 9391867 [details]
Bug 1886022 - Refactor canvas shutdown to account for process crashes.
Approved for 125.0b4.
Comment 10•7 months ago
|
||
uplift |
Updated•7 months ago
|
Updated•6 months ago
|
Description
•