I'm trying to use chrome.tabs.highlight for the first time. I have some code that looks like thischrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab){if (!tab.active){chrome.tabs.highlight({tabs: [tabId]}, function(){});}}When the tab updates and is not active, the highlight call is made and in the extension background page i get an error: "Error during tabs.highlight: No tab at index: 696." That seems very wrong, as I'm getting the tab id as an argument to the onUpdated callback. If I look at tab.id it has the same id. I get the same error if I also include the tab windowId in the call.I'm running Version 23.0.1271.64 Ubuntu 12.04 (165188).I'm not 100% sure what this call is supposed to do, but I wanted to try it. I suppose being highlighted makes the tab look like the current tab (which the user might find confusing).BTW, if I don't pass a callback to chrome.tabs.highlight, Chrome also complains - so I send a do-nothing function to keep it quiet.Thanks for any help!--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/lbwYrObLNAAJ.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.