Skip to content

[Web Install] Unrestricted Variant for WebExtensions #954

Open

Description

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

Activity

  1. added
    Web Install API
    on Feb 6, 2025
  2. diekus commented on Jun 17, 2025

    @diekus
    Contributor

    Hola Daniel Herr (@DanielHerr)

    Extensions are currently not in the scope of the API. We're still in the process of getting feedback but I'd encourage you to open a conversation in relevant groups like the W3C WECG. I am not an expert in Extensions and don't know the inner workings/privacy risks associated with the approach you propose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Web Install API

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions