The popup.html sends a request to contentscript.js. The contentscript.js creates an array and send the repsonse(an array object) to popup.html.
How to pass an array object from contentscript.js to popup.html?
Is there a need of background.html page to get array object from contentscript.js and then pass it on to popup.html ?
update: added selected tab id instead of null