-
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
chrome.app.window reference lost after reload #5294
Labels
Comments
This is fixed in git and will be available in the next nightly build. |
This was referenced Oct 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This bug is related to : #5181
chrome.app.window.getAll() will return NULL values if you try to reload the content (CMD+R) of window.
I think this shouldn't be the normal behaviour.
Tested on 0.18 beta-1 on Windows 7 and MacOS X.
This feature is important to check which instance is opened every time and I don't want to allow opening the same window multiple times.
Example
Supposing we are running the app with those windows:
window 1 = myapp.com/app1.html
window 2 = myapp.com/app2.html
..
window N = myapp.com/appN.html
If the user click a link with url "myapp.com/app1.html" the Window 1 must be focused (instead to open a new window).
What is the best way to know every opened window?
I was trying with nw.global.__windows and with chrome.app.window.getAll() but both are bugged, is there any other way (native/api way)
In the past I used a global object where to track every window... but I had to fight with memory leaks and issues like that.
The text was updated successfully, but these errors were encountered: