mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7242] [MERGED] fix(theme): keep the app running when WebKit refuses canvas reads #7641
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7641
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7242
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/webkit-backing-canvas-7241📝 Commits (2)
393d1b3fix(theme): keep the app running when WebKit refuses canvas reads66bb8eatest(theme): assert the exact fallback backing colour without canvas reads📊 Changes
3 files changed (+45 additions, -15 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/core-flows.e2e.ts(+23 -0)📝
packages/client/src/App.tsx(+21 -15)📄 Description
Linked issue
Closes #7241
Why this change
InvalidStateError, "Unable to get image data from canvas"). The error was thrown inside a React effect, so the whole app fell into Marinara hit a recoverable UI error. over a cosmetic colour. The #7236 verifier found it: it caused the mobile-webkit "blank app page" failures under parallel test load, and iOS Safari users under memory pressure can hit the same thing.What changed
packages/client/src/App.tsx: the canvas reads insyncLiteralBackgroundare wrapped intry/catch. If the browser refuses, the page backing and the browser bar keep the theme's unflattened background colour. The rest of the shell keeps running, and the browser console gets a warning.e2e/core-flows.e2e.ts: a new test makesgetImageDatathrowInvalidStateErrorand checks that the app shell loads without the recovery screen and still sets a backing colour.CHANGELOG.md: user-facing entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for the reviewer to confirm, not ticked):
pnpm check: exit 0.App.tsxchange, the new test fails on desktop-chromium: the page shows the "Marinara hit a recoverable UI error." heading and no app shell.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Only
CHANGELOG.mdchanges. No guide underdocs/describes this.UI evidence (if applicable)
No visual change when the browser allows the canvas read.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.