Ignore generic InvalidStateError in View Transitions (#34450)
Fixes #34098. There's an issue in Chrome where the `InvalidStateError` always has the same error message. The spec doesn't specify the error message to use but it's more useful to have a specific one for each case like Safari does. One reason it's better to have a specific error message is because the browser console is not the main surface that people look for errors. Chrome relies on a separate log also in the console. Frameworks has built-in error dialogs that pop up first and that's where you see the error and that dialog can't show something specific. Additionally, these errors can't log something specific to servers in production logging. So this is a bad strategy. It's not good to have those error dialogs pop up for non-actionable errors like when it doesn't start because the document was hidden. Since we don't have more specific information we have no choice but to hide all of them. This includes actionable things like duplicate names (although we also have a React specific warning for that in the common case). DiffTrain build for [a34c5dff159a5b546a5b24a93e11102713a7d0ec](https://github.com/facebook/react/commit/a34c5dff159a5b546a5b24a93e11102713a7d0ec)
S
sebmarkbage committed
9e350ca304a4432a0e30d5b7ce0078336bf50e70
Parent: a34d0e0