It seems as though this may be a bug with the Blink engine itself, but when using JS similar to this
window.open(Location, '_blank');
The new window always has a visibility state of hidden, and it's very consistent. Sadly JS fiddle doesn't seem to work with this (iFrames break the bug maybe?), but I have a super basic test case here.
You'll see if you open my test html file, and Ctrl+Click on the button, the new tab that opens up will always be stuck in a hidden state, which you can check in the console like
> document.visibilityState
"hidden"
> document.hidden
true
This causes weird issues with things that check the visibility state of the page, and no amount of refreshing seems to fix it either, essentially once the tab starts that way, it never comes back out of that, although closing the tab and reopening with Ctrl+Shift+T does seem to make it behave correctly.
I noticed the bug using the Dark Reader extension, some of my tabs would never fully style correctly, and I think this is the culprit. Is this a bug? Is there a workaround so my own applications can load correctly whilst making sure the tab is visible?
Chrome version: 84.0.4147.105, Edge version: 84.0.522.44