1. Ryan Ackley
  2. tincr
  3. Issues
Issue #27 resolved

Browse button not working - Cannot read property 'id' of undefined TypeError

Jan Nicklas
created an issue

Chrome Version: Version 28.0.1500.71

Error in event handler for 'undefined': Cannot read property 'id' of undefined TypeError: Cannot read property 'id' of undefined at chrome-extension://background.js:15:53

The reason for this issue is that the tab is optional and is not longer omitted:


tab ( optional tabs.Tab ) This property will only be present when the connection was opened from a tab or content script.

I would suppose to changes:

  1. Use onMessage instead of the depcrated onRequest http://stackoverflow.com/questions/11335815/chrome-extensions-onrequest-sendrequest-vs-onmessage-sendmessage
  2. Send the tabId using the inspectedWindow.tabId:

Comments (2)

  1. Log in to comment