-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect "connection lost" message for multi-page flows #2902
Comments
This might be a little involved because with the Messenger we've basically gone towards: "Try messaging this target, until it exists, full stop." The Messenger doesn't differentiate between a non-existing target and a target that's loading, we tried to make it completely opaque to the caller. Other requirements that came along, like named targets ("tabId-less targets"), also changed how we wait for this to happen and what we allow as an "error" that allows retries. I'll look into it tomorrow, maybe it's unrelated to all that. |
Uh oh. It's actually a deeper problem. We can't distinguish between:
Here's what happens:
The steps marked with 🟣 can likely be improved with little effort. I don't expect the polyfill to fix this issue in the short term or maybe even ever. |
I opened 3 issues to document this behavior: |
I think your analysis looks correct. I was thinking of just solving the proximate cause: Can we just wrap the runBrick calls in a try/catch and change the error message? This should be a BusinessError, since when dealing with target/opener/etc. it's generally a misconfigured multipage extension Then our handlers that look for connection related errors would just see it as a normal error |
Steps to reproduce
Actual Behavior
Expected Behavior
Considerations
Related code:
The text was updated successfully, but these errors were encountered: