Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

chrome.windows.onFocusChanged.addListener not firing on tab switching

I am trying to fetch all events (maximized, maximize etc). I have a suitable code for this from this link How to Detect Window On Minimize/Maximize Event in Chrome Extension?.

But the problem when switch tab (using alt+tab) window.chrome.onFocusChanged listener is not firing.

My code :

chrome.windows.onFocusChanged.addListener(function(windowId) {
    console.log("focus change", windowId);    
});

Is there a solution for this or... it is a bug?

like image 304
Sourav Mondal Avatar asked Mar 15 '16 10:03

Sourav Mondal


1 Answers

This is a confirmed bug which was already posted at the Chrome Bug Tracker back in 2014. Unfortunately, it received little to no attention. No news if it will be fixed in milestone iterations in the near future either.

like image 151
SwagBomb Avatar answered Oct 23 '22 03:10

SwagBomb