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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With