6

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?

Community
  • 1
  • 1
Sourav Mondal
  • 405
  • 2
  • 12

1 Answers1

5

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.

SwagBomb
  • 584
  • 3
  • 7