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
NWJS Version : 0.46.2
Operating System : CentOS 7.8
Expected behavior
A call
nw.Window.get(iframe.contentWindow)
should work even if that iframe is an nwfaketop. It worked before NW2 when in NW1.
Actual behavior
There is an error with a surprisingly short stack trace
extensions::nw.Window:107 Uncaught TypeError: Cannot read property 'onWindowChanged' of undefined
at new NWWindow (extensions::nw.Window:107)
at extensions::nw.Window:723
and our code doesn't run after that.
At a breakpoint at that line extensions::nw.Window:107 inside function NWWindow(cWindow) in the code
NWJS Version : 0.46.2
Operating System : CentOS 7.8
Expected behavior
A call
should work even if that
iframe
is annwfaketop
. It worked before NW2 when in NW1.Actual behavior
There is an error with a surprisingly short stack trace
and our code doesn't run after that.
At a breakpoint at that line
extensions::nw.Window:107
insidefunction NWWindow(cWindow)
in the codethe chrome.windows is undefined.
That is called from line 723 inside
apiBridge.registerCustomHook(function(bindingsAPI)
codeWe have narrowed it down it occurs with an iframe that has
nwfaketop
.Per developer tools call stack it is caused by our application calling
Not knowing when code would get to line 107, I guess maybe a new optional chaining operator would be a reasonable single character fix:
How to reproduce
Simplest NW.js app with
index.html
No rush. For now we can run with NW2 disabled.
The text was updated successfully, but these errors were encountered: