-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent iframes from breaking out and redirecting the BrowserWindow hosting the iframe? #656
Comments
node-webkit got support for this exact functionality a while ago, perhaps it could be used as inspiration? |
Based on this, I would assume that you could get the same functionality by adding the following attribute to your iframe:
(Note the exclusion of |
@huntaub, just tested this and it works nicely! |
@huntaub Thanks man. |
From MDN:
|
I tried it and the page wouldn't work anymore. |
For example, if you try to create an atom-shell app that has an iframe that references github.com, Github uses an iframe breaking technique to redirect the top window to the src of the iframe.
Is there anyway to trick the iframe to make it think it is the top window?
If not, what is the best way to manage a bunch of individual BrowserWindows inside of a main window?
The text was updated successfully, but these errors were encountered: