Skip to content

[Web Install] Distinguish AbortErrors caused by user cancellation #1223

@LiaHiscock

Description

@LiaHiscock

Currently, navigator.install()'s promise can resolve in 1 of 3 ways

  1. Success
  2. AbortError: The user aborted a request.
  3. DataError: The data provided does not meet requirements.

For privacy reasons, AbortError is used as a generic failure code for any non-data related errors. This includes if the user declines the installation dialog.

We should consider changing the message string so that it only says "The user aborted a request" when the user actually clicked "cancel" in the install confirmation prompt.

Motivation - enables developers to show an error message only if something actually failed, and not if the user cancelled installation.

Metadata

Metadata

Assignees

Labels

Web Install APIImperative install for web apps from a web page.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions