Skip to content

Instantly share code, notes, and snippets.

@e-schultz
Created June 19, 2015 17:44
Show Gist options
  • Select an option

  • Save e-schultz/0993932ba387e4d06f9f to your computer and use it in GitHub Desktop.

Select an option

Save e-schultz/0993932ba387e4d06f9f to your computer and use it in GitHub Desktop.
Firefox Iframe

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment