auchenberg / vscode-browser-preview

A real browser preview inside your editor that you can debug.
MIT License
4.38k stars 153 forks source link

window.opener is null for window launched by window.open() #57

Open gjsjohnmurray opened 5 years ago

gjsjohnmurray commented 5 years ago

40 implemented window.open(), but if window A uses it to open window B, the value of window.opener within B is null rather than a reference to A.

auchenberg commented 5 years ago

@gjsjohnmurray Good catch! Feel free to open PRs ;)

dooriya commented 3 years ago

@auchenberg @gjsjohnmurray Any update or idea about this issue? We've got the same problem here when open a new popup window to handle the OAuth authentication flow, which needs to set the window.opener or window.parent to its main window.

auchenberg commented 3 years ago

Top of mind I don't think there's a way to make this possible. I'd appreciate if someone could research this in depth.