Browse button not working - Cannot read property 'id' of undefined TypeError
Issue #27
resolved
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:
http://developer.chrome.com/extensions/extension.html#type-MessageSender
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:
- Use onMessage instead of the depcrated onRequest http://stackoverflow.com/questions/11335815/chrome-extensions-onrequest-sendrequest-vs-onmessage-sendmessage
- Send the tabId using the inspectedWindow.tabId:
chrome.devtools.inspectedWindow.tabId
Comments (2)
-
reporter -
repo owner - changed status to resolved
- Log in to comment
I also created a pull request which solves this issue in my case: https://bitbucket.org/ryanackley/tincr/pull-request/3/fixes-issue-27/diff