Once again we have to ask "why is this even possible?" Web designers have been given too much control over the browser is the usual answer and seem to be the case here. There should be no interaction allowed between tabs.
The postMessage API provides a safer way for Windows/Tabs to communicate.
https://developer.mozilla.org/en-US/docs/Web/API/Window/post...