Skip to content

request: standardize externally_connectable and support optional/dynamic matches #22

@twschiller

Description

@twschiller

Context

Chromium browsers support a externally_connectable manifest key that enables websites to message the extension directly and securely

However, the list of externally_connectable sites is static in the manifest. Therefore, the primary current use case is connecting to the website associated with the extension

As there are many non site-specific extensions, making the list of externally_connectable sites to be dynamic (similar to optional hosts) would allow deeper extensibility between sites and these extensions. In this world, browser extension authors could provide a companion JS library that website developers would use to make their site customizable/extensible via the browser extension

Request

  • Include support for externally_connectable in the web extension standard
  • Allow the list to be modified using browser.permissions or a similar API
  • Provide a way for a website to signal that it supports that browser extension via externally_connectable, so that the extension can react even if it doesn't have the activeTab permission yet (E.g., by confirming that the user should see a permissions prompt to give access). Potential methods: an HTML meta tag, an JS API available to the external site, e.g., browsers.permissions.acceptExtensions(ids)

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions