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 }}
Repository navigation
window.open does not open anything when called from an iframe #10401
changed the title [-]window.open does not open anything when calling from an iframe[/-][+]window.open does not open anything when called from an iframe[/+]on Aug 30, 2017
As far as I am aware this is expected behavior as preload scripts do not currently run in iframes. I believe our long term plan is to make nativeWindowOpen default to true (when we're happy everything works) and then this will not be an issue 👍
Ok, yes indeed was wandering around and realized as well that nativeWindowOpen is actually the future and the solution of this.
I wished I could use nativeWindowOpen but can't because of #8100 😅
However, in several cases (window.alert..), it looks like we could benefit from having preload running in iframes. Isn't that conceivable? (Relates to #1044 I guess.)
I have a similar Problem, not sure if its the same.
ProjectDescription:
In render i have main page index.html which holds -> multiple webviews (webpreferences="nativeWindowOpen=yes") -> contain random content including iframes -> iframes include links or call window.open()
In index.html script I listen on new-window event like this:
Problem:
When i build the app against electron v1.6.14 its fine, but with v1.7.5 or higher the 'new-window' event is not triggered.
Sadly i could not find what changes are responsible for breaking this behavior or how to fix it. I wonder if the above means, that there is no fix or did i miss something?
Thank you for taking the time to report this issue and helping to make Electron better.
The version of Electron you reported this on has been superseded by newer releases.
If you're still experiencing this issue in Electron v2.0.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.
I'm setting the blocked/need-info label for the above reasons.
We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.
Activity
[-]window.open does not open anything when calling from an iframe[/-][+]window.open does not open anything when called from an iframe[/+]MarshallOfSound commentedon Aug 30, 2017
As far as I am aware this is expected behavior as preload scripts do not currently run in iframes. I believe our long term plan is to make
nativeWindowOpendefault to true (when we're happy everything works) and then this will not be an issue 👍alexstrat commentedon Aug 30, 2017
Ok, yes indeed was wandering around and realized as well that
nativeWindowOpenis actually the future and the solution of this.I wished I could use
nativeWindowOpenbut can't because of #8100 😅However, in several cases (
window.alert..), it looks like we could benefit from having preload running iniframes. Isn't that conceivable? (Relates to #1044 I guess.)TIM0N commentedon Sep 28, 2017
I have a similar Problem, not sure if its the same.
ProjectDescription:
In render i have main page index.html which holds -> multiple webviews (webpreferences="nativeWindowOpen=yes") -> contain random content including iframes -> iframes include links or call window.open()
In index.html script I listen on new-window event like this:
Problem:
When i build the app against electron v1.6.14 its fine, but with v1.7.5 or higher the 'new-window' event is not triggered.
Sadly i could not find what changes are responsible for breaking this behavior or how to fix it. I wonder if the above means, that there is no fix or did i miss something?
sofianguy commentedon Jan 8, 2019
Thank you for taking the time to report this issue and helping to make Electron better.
The version of Electron you reported this on has been superseded by newer releases.
If you're still experiencing this issue in Electron v2.0.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.
I'm setting the
blocked/need-infolabel for the above reasons.Thanks in advance! Your help is appreciated.
sofianguy commentedon Jan 15, 2019
Thank you for your issue!
We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.
feat: add support for node / preloads in subframes
feat: add support for node / preloads in subframes
feat: preloads and nodeIntegration in iframes (#16425)
feat: preloads and nodeIntegration in iframes (#16425)
feat: preloads and nodeIntegration in iframes (#16425)