Skip to content

fix(www): suppress viewport transition aborts - #201

Merged
KyleTryon merged 1 commit into
mainfrom
fix/www/suppress-viewport-transition-aborts
Sep 24, 2026
Merged

KyleTryon merged 1 commit into
mainfrom
fix/www/suppress-viewport-transition-aborts

Conversation

@KyleTryon

Copy link
Copy Markdown
Contributor

Chrome Mobile can resize the viewport as its address bar moves during Astro navigation, leaving a benign View Transition abort as an unhandled rejection. Add a once-per-document rejection listener that suppresses only the reported InvalidStateError, and reuse its specific message matcher in Sentry ignoreErrors.

Navigation and transition behavior are preserved; unrelated rejections remain visible. This suppresses the abort report rather than preventing the browser from skipping an animation.

Validation: pnpm preflight passed on Node 24. A focused runtime check passed eight rejection cases (including DOMException, Error, unrelated errors, and non-error values) plus Sentry message matching. Physical Android address-bar reproduction was not run.

@KyleTryon
KyleTryon marked this pull request as ready for review September 24, 2026 18:33
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cliparr-web a541648 Commit Preview URL

Branch Preview URL
Sep 24 2026, 06:34 PM

@KyleTryon
KyleTryon merged commit 43b2279 into main Sep 24, 2026
5 checks passed
@KyleTryon
KyleTryon deleted the fix/www/suppress-viewport-transition-aborts branch September 24, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant