TL;DR: I’m working on a Chrome extension where I need to increase a count only when a tab is visible and not covered by another window. Is there any way to detect this? I’ve tried using the Page Visibility API, but here’s the problem with it: Imagine I have two windows docked side by side. My focus is on tab