I have an application which opens some larger multi-page dialogues in new browser tabs using window.open(). On the first page in the new tab close() works, but after any navigation in the new tab close() doesn't work any more in modern browsers, all workarounds I found have been disabled by now.
Is there any way to keep the reference to the initially opened window and pass it along during navigation so I can close it from within the new tab after the navigations?
Or access the tab which opened the current tab initially which still holds a reference to the opened window and close it from there?
All pages are controlled by me and share the same host / context if this may help, navigation in the new tab must be top level to some extent, so wrapping into an iframe may not be an option.