Nw.js: SDK build reload app breaks the "global" object with --load-extension

Created on 16 Nov 2016  路  2Comments  路  Source: nwjs/nw.js

win 10 64 bit sdk build
NW.js v0.18.7

I run my project with a shortcut with a target like this:

C:Devnwjsnw.exe --load-extension="C:Devvue-devtools" "C:Devtest"

After I reload the app with the right mouse button on main window context menu "Reload app" button most of the properties in the "global" object will be null or undefined.
For an example global.setImmediate will be undefined.

This only happens if I load a devtools extension.

Repro case includes the extension and a basic app.
global_var_test.zip

Step by step reproduction:

  1. Run the app in nw.js with --load-extension
  2. Open the devtools context menu (right mouse button on the window)
  3. Click on Reload app or Simulate browser restart context menu element
  4. After app reload open the devtools
  5. In the console check out the global object, e.g.: global.setImmediate
P2 bug test-todo triaged

Most helpful comment

This is fixed in git and will be available in the next nightly build.

All 2 comments

Reproduced with the reporter's test case on Linux and Windows with nwjs-sdk-0.21.0.

This is fixed in git and will be available in the next nightly build.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niutech picture niutech  路  4Comments

daverave1212 picture daverave1212  路  3Comments

adam-lynch picture adam-lynch  路  4Comments

imyzf picture imyzf  路  4Comments

Asp3ctus picture Asp3ctus  路  4Comments