chrome.tabs.detectLanguage(tabId, function(lang) {
// this callback never calls
// unreachable place
});
reproduce steps:
- open en.wikipedia.org
- in extension background page call chrome.tabs.query({}, console.log.bind(console)); // invokes array of chrome.tab.Tab object
- detect wikipedia tab id (for example, 10);
- call chrome.tabs.detectLanguage(10, function(lang) {
// never calls
});
This problem is actual since 25 major version.