The setup:
- Basic angular application
- Has an iframe that is dynamically added to the page, and a dynamic src
- Page when it loads, goes to a SSO provider
- Upon logging in - gets redirected to a new page
- New page sends a postMessage to the parent frame
- Parent frame then updates the location.path, then does a window.location.reload
The problem:
- At random, when the window.location.reload happens, the parent frame takes on the URL of the iFrame.
To Investigate:
- Verify that location.path update needs to happen first