I have developed a Chrome extension, it works fine in Chrome 39 but gives an error in Opera developer 24 on Ubuntu 14.04 (64 bit).
Error in response to tabs.query: TypeError: Cannot read property 'id' of undefined at HTMLLIElement.click
So I tested chrome.tabs.query
on both browser consoles:
chrome.tabs.query(
{ active: true, highlighted: true, currentWindow: true },
function(thisTab) {
console.log(thisTab);
}
);
In Chrome it returns a complete Tab
object.
But in Opera it returns a blank array []
.
Why this is happening?