Skip to content

Solve "Error: Could not establish connection. Receiving end does not exist." #2156

@melink14

Description

@melink14

In MV3, this error comes up in various contexts. It seems harmless but as noise it would be good to minimize it. It mostly happens in the onActivated listener as far as I can tell.

  1. When trying to activate on chrome:// tabs.
  2. When trying to activate tabs that existed before the current version of the extension was installed. (this is tracked at Doesn't work on existing tabs when enabled immediately after install or update #36)

The former could be fixed with a check in the handler, the latter probably needs to be solved as part of a larger fix of handling stale tabs when the extension is updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code healthIssues which if fixed would improve the health of the project (as opposed to new features/bugs)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions