Skip to content
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] Unrestricted Variant for WebExtensions #954

Open
DanielHerr opened this issue Feb 6, 2025 · 0 comments
Open

[Web Install] Unrestricted Variant for WebExtensions #954

DanielHerr opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
Web Install API Declarative install for web apps from a web app.

Comments

@DanielHerr
Copy link

Currently, WebExtensions are not able to programmatically install PWAs.

They can however, generate a shortcut using chrome.management.generateAppForLink(URL, title), which was introduced prior to the introduction of Web manifests. It uses the "management" permission. Unfortunately, this API doesn't consider the manifest or its contained preferences.

This situation is not ideal, and unfortunately investment in the extensions platform has always been inadequate. But this API presents an opportunity to also improve extensions.

While the regular version of this API would be usable in extensions, a few changes would bring major improvements. These are centered around relaxing the permissions model.

  • extension "management" permission should automatically grant this API's permission
  • user gesture and foreground requirements should be waived
  • confirmation dialog should be skipped
  • getInstalledApps() should return all PWAs regardless of how they were installed
  • anything else I missed
@DanielHerr DanielHerr added the Web Install API Declarative install for web apps from a web app. label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Web Install API Declarative install for web apps from a web app.
Projects
None yet
Development

No branches or pull requests

2 participants