chrome.runtime.sendMessage throws a JS error if the other end no longer exists |
||||||
Issue descriptionInstall 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)
,
Sep 30 2016
,
Oct 2 2017
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
,
Oct 4 2017
,
Oct 4
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
,
Oct 5
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by pam@chromium.org
, Sep 27 2016882 bytes
882 bytes Download