user886045
user886045

Reputation:

Chrome Extension Tab Favicon

I have a chrome extension I'm building and have included the tabs permission in my manifest file:

"permissions": [
    "tabs"
 ],

In my javascript file I am using

chrome.tabs.query({}, function(tabs) {

to get a list of my tabs and this is all working fine, however I don't get the faviconUrl field in my return objects.

I have tried looping through them used

chrome.tabs.get(item.id, function(data) { 

But I just get the same object data through.

Does anyone have any idea why faviconUrl is not appearing in my results?

Upvotes: 1

Views: 926

Answers (1)

user886045
user886045

Reputation:

The faviconUrl field is not returned at all if the tab does not have a favicon!

Upvotes: 2

Related Questions