Skip to content

View Transitions: update error message classification for Chrome 153 - #38034

Merged
rickhanlonii merged 1 commit into
react:mainfrom
sophiebits:sophiebits/view-transition-skip-reasons
Oct 29, 2026
Merged

rickhanlonii merged 1 commit into
react:mainfrom
sophiebits:sophiebits/view-transition-skip-reasons

Conversation

@sophiebits

@sophiebits sophiebits commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Chrome 153 updated the InvalidStateError error messages for view transitions (chromium@bed98a9), e.g. Transition was aborted because of invalid state. Document hidden. These now bubble up through onRecoverableError whereas previously we suppressed them by exact message.

Don't switch to .startsWith() which would hide every reason; instead just match the unactionable ones (Document hidden, Viewport size changed, and the reason-less message). Also add the analogous Firefox messages.

Duplicate view-transition-name is defined in the Blink enum but doesn't actually ever surface; instead these show up as Snapshot capture failed or Animation start failed, so add a helpful more helpful message in __DEV__ for those.

Fixes #37669

@meta-cla meta-cla Bot added the CLA Signed label Oct 29, 2026
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Comparing: 16a1d5d...74860a3

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 7.35 kB 7.35 kB +0.05% 1.96 kB 1.96 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +0.05% 626.23 kB 626.53 kB +0.04% 110.65 kB 110.70 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 7.36 kB 7.36 kB = 1.96 kB 1.96 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js +0.04% 697.45 kB 697.75 kB +0.05% 122.09 kB 122.15 kB
facebook-www/ReactDOM-prod.classic.js +0.04% 715.48 kB 715.78 kB +0.03% 125.16 kB 125.21 kB
facebook-www/ReactDOM-prod.modern.js +0.04% 705.80 kB 706.10 kB +0.03% 123.59 kB 123.64 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by sizebot against 74860a3

@sophiebits
sophiebits force-pushed the sophiebits/view-transition-skip-reasons branch from 8c8cd7b to 73d45ae Compare October 29, 2026 07:27
Chrome 153 updated the `InvalidStateError` error messages for view transitions ([chromium@bed98a9](https://chromium.googlesource.com/chromium/src/+/bed98a9780b75372c1974d8aa0e48f1433082e2f%5E%21/)), e.g. `Transition was aborted because of invalid state. Document hidden`. These now bubble up through `onRecoverableError` whereas previously we suppressed them by exact message.

Don't switch to .startsWith() which would hide every reason; instead just match the unactionable ones (`Document hidden`, `Viewport size changed`, and the reason-less message). Also add the analogous Firefox messages.

`Duplicate view-transition-name` is defined in the Blink enum but doesn't actually ever surface; instead these show up as `Snapshot capture failed` or `Animation start failed`, so add a helpful more helpful message in __DEV__ for those.

Fixes react#37669
@sophiebits
sophiebits force-pushed the sophiebits/view-transition-skip-reasons branch from 73d45ae to 74860a3 Compare October 29, 2026 07:32
@rickhanlonii
rickhanlonii merged commit c5ec5c6 into react:main Oct 29, 2026
239 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 29, 2026
…38034)

Chrome 153 updated the `InvalidStateError` error messages for view
transitions
([chromium@bed98a9](https://chromium.googlesource.com/chromium/src/+/bed98a9780b75372c1974d8aa0e48f1433082e2f%5E%21/)),
e.g. `Transition was aborted because of invalid state. Document hidden`.
These now bubble up through `onRecoverableError` whereas previously we
suppressed them by exact message.

Don't switch to .startsWith() which would hide every reason; instead
just match the unactionable ones (`Document hidden`, `Viewport size
changed`, and the reason-less message). Also add the analogous Firefox
messages.

`Duplicate view-transition-name` is defined in the Blink enum but
doesn't actually ever surface; instead these show up as `Snapshot
capture failed` or `Animation start failed`, so add a helpful more
helpful message in \_\_DEV\_\_ for those.

Fixes #37669

DiffTrain build for [c5ec5c6](c5ec5c6)
github-actions Bot pushed a commit that referenced this pull request Oct 29, 2026
…38034)

Chrome 153 updated the `InvalidStateError` error messages for view
transitions
([chromium@bed98a9](https://chromium.googlesource.com/chromium/src/+/bed98a9780b75372c1974d8aa0e48f1433082e2f%5E%21/)),
e.g. `Transition was aborted because of invalid state. Document hidden`.
These now bubble up through `onRecoverableError` whereas previously we
suppressed them by exact message.

Don't switch to .startsWith() which would hide every reason; instead
just match the unactionable ones (`Document hidden`, `Viewport size
changed`, and the reason-less message). Also add the analogous Firefox
messages.

`Duplicate view-transition-name` is defined in the Blink enum but
doesn't actually ever surface; instead these show up as `Snapshot
capture failed` or `Animation start failed`, so add a helpful more
helpful message in \_\_DEV\_\_ for those.

Fixes #37669

DiffTrain build for [c5ec5c6](c5ec5c6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: hidden-document InvalidStateError from ViewTransition is reported again on Chrome 153+ (message now carries a reason suffix)

2 participants