Hello,
I am in the process of deving a firefox extension for the first time
I want to retrieve the list of open pages in “background.js”, I did:
browser.tabs.query({}, function (tabs) {
for (var i = 0; i < tabs.length; i++) {
console.log("tab : " + i + tabs[i].url);
}
});
The problem that in the result I get :
tab : 0about:blank background.js:35:11
tab : 1http://ur2/ background.js:35:11
tab : 2about:blank background.js:35:11
tab : 3url4 background.js:35:11
tab : 4about:blank
when he has to give real urls instead of “about: blank”