New issue
Advanced search Search tips

Issue 650872 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

chrome.runtime.sendMessage throws a JS error if the other end no longer exists

Project Member Reported by pam@chromium.org, Sep 27 2016

Issue description

Install attached extension, which has a content script and a background page
  The background JS has chrome.runtime.onMessage.addListener()
  The content script sends a message on backspace
Load a page
Disable the extension from chrome://extensions in another tab
Make sure any other extensions that catch backspace are not enabled

Actual:
Throws a JS exception

Uncaught Error: Invocation of form runtime.connect(null, ) doesn't match definition runtime.connect(optional string extensionId, optional object connectInfo)

normalizeArgumentsAndValidate @ extensions::schemaUtils:112
(anonymous function) @ VM112 extensions::binding:411
(anonymous function) @ VM121 extensions::runtime:128
target.(anonymous function) @ extensions::SafeBuiltins:19
(anonymous function) @ VM112 extensions::binding:63
target.(anonymous function) @ extensions::SafeBuiltins:19
(anonymous function) @ VM112 extensions::binding:422
handleBackspace @ content_script.js:4

Expected:
Extension error (i.e. execution completes but lastError is set)
 

Comment 1 by pam@chromium.org, Sep 27 2016

bug650872.zip
882 bytes Download
Status: Available (was: Untriaged)
Project Member

Comment 3 by sheriffbot@chromium.org, Oct 2 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
Project Member

Comment 5 by sheriffbot@chromium.org, Oct 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment