Repository navigation
View Transitions: update error message classification for Chrome 153 - #38034
Merged
rickhanlonii merged 1 commit intoOct 29, 2026
Merged
Conversation
|
Comparing: 16a1d5d...74860a3 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) Generated by sizebot against 74860a3 |
sophiebits
force-pushed
the
sophiebits/view-transition-skip-reasons
branch
from
October 29, 2026 07:27
8c8cd7b to
73d45ae
Compare
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
force-pushed
the
sophiebits/view-transition-skip-reasons
branch
from
October 29, 2026 07:32
73d45ae to
74860a3
Compare
rickhanlonii
approved these changes
Oct 29, 2026
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)
This was referenced Oct 29, 2026
1 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chrome 153 updated the
InvalidStateErrorerror messages for view transitions (chromium@bed98a9), e.g.Transition was aborted because of invalid state. Document hidden. These now bubble up throughonRecoverableErrorwhereas 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-nameis defined in the Blink enum but doesn't actually ever surface; instead these show up asSnapshot capture failedorAnimation start failed, so add a helpful more helpful message in __DEV__ for those.Fixes #37669