You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
[*] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
In one part of my application I open up a new window using window.open, but I want to attach some code to the window's beforeclose event (because I need to refresh some data on the page). Window.open returns a reference to the window object, but in IE if I access the reference right after opening the window the addEventListener method is undefined. If I wrap it in a short timeout it's usually OK, but this feels hackish an unreliable to me.
My current guess it's because Zone.js monkey-patches the addEventListener function and it's taking some time in IE.
Expected behavior
window.open should return a complete reference to the window object, with all of its methods intact.
Minimal reproduction of the problem with instructions