Browse button not working - Cannot read property 'id' of undefined TypeError
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:
- 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: