-
Notifications
You must be signed in to change notification settings - Fork 220
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
[Web Install] Error types #898
Comments
Circling back from discussion before break - we want to be careful with these error messages & make sure that they don't enable malicious behavior. I'm expecting that this will be discussed in the explainer. |
Minimizing the number of errors implies we need to group them into categories that make it harder for a possible bad actor to accurately identify why an app installation didn't go through. I believe we can cover all errors, including the ones listed in this issue with From the cases specified in the issue, I'd suggest:
|
Explainer update to reflect this, view #961 |
@diekus I don't think
|
We once had had a detailed list of error types which was later pruned down to a single
AbortError
to represent all failure types whether they were related to the user aborting an action or not. Although this may be beneficial for privacy, it poses usability issues as the developer can't tell the difference between bad inputs, user action/cancellation, and misc other technical mishaps. Instead, here is a proposed list of minimal errors that balance usability and privacy:DOMExceptions:
InvalidStateError
:NotAllowedError
:AbortError
Custom rejection messages:
ManifestIdMismatch
: when the provided id param doesn't match the app's idNoIdInManifest
: For same-origin only. When the app's manifest does not declare a validid
The text was updated successfully, but these errors were encountered: