Skip to content

Proposal: runtime.isFirstInstalled #172

@Jack-Works

Description

@Jack-Works

Motivation

Now we can use chrome.runtime.onInstalled.addListener, but it has some inconvenience.

If the event listener is not attached in the first event loop, it will miss the event.

Proposal

  • browser.runtime.isFirstInstalled: boolean (OnInstalledReason = install)
  • browser.runtime.updatedFrom: string | undefined (OnInstalledReason = update)

With these new properties, the extension will less likely to miss the onInstalled event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposal for a change or new feature

    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