-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
NWJS v0.42.4 multiple instance is opening of node webkit #7518
Comments
It is opening new window everytime . |
could this be related with this issue #7516? |
looking at the release notes of v0.42.4 the first version this bug seems to appear makes me wonder if this is related to nw2:
I will do some tests with "--disable-features=nw2" to see if that helps |
@HarshadUpadhyay try adding |
Thank you!! It's also worked for me as well. But is there any other issue or problem will come if I put "--disable-features=nw2"? I mean what this tag actually does "--disable-features=nw2" in package.json??? |
@HarshadUpadhyay nw2 is the "new window" handling logic that will replace the old (now deprecated) logic. It seems the new one needs some more work. (#7230) |
can some one tag this issue as nw2 :) |
Could you please provide a full sample (not code snippets) so we can reproduce? |
With disable-features=nw2 , after using the latest nw.js version 0.47.0 i am not able to access window.location.href after redirection. here is the code i am using gui.Window.open(decodeURIComponent(loginurl), { |
Could you please provide a full sample (not code snippets) so I can reproduce? |
close until more information is available. |
On MacOS this is still happening when using "Reload App" from the context menu while the devtools are open. The new application instance will be opened but the existing one isn't closed (devtools will be closed, but the main window remains open). Using "inspect background page" will not show any scripts (in sources tab) when 2 or more instances are open. My test cases:
Closing both windows (case 2) manually (v50.0.1) will cause a dump in "nwjs" console window: With disable-features=nw2 this works afaik. We will stay at v0.36.1 until all of the nw2 bugs are fixed. I'll create a repo to reproduce this issue as soon as i can. Maybe helpful infos: v50.0.1 is build with nw-builder (v3.5.7) and this part of the config {
"main": "bootstrapper/main.html",
"node-main": "server/server.js",
"node-remote": "http://127.0.0.1/*"
} |
Sorry for the late response. |
I have checked till version 0.42.3 it's working fine. After this as soon as we go ahead with latest release this issue appears like node WebKit multiple windows are appearing. Before it was only single instance was open.
The text was updated successfully, but these errors were encountered: