Program doesn’t fully quit when a webview’s devtools are opened in a webview

NWJS Version : 0.49.0
Operating System : Windows 10

Expected behavior

When all windows in the application are closed, the application closes and the .exe can be run again, deleted etc.

Actual behavior

When all windows are closed, some processes remaining running, preventing the .exe from being run again, deleted etc.

The following processes remain:

image

The bottom process needs to be forced closed for the app to stop running

How to reproduce

  1. Go to the folder with nwjs
  2. Set the package.json main key to index.html
  3. Create index.html with:
<button onclick="browser.showDevTools(true, devtools)">Open</button>
<webview id="browser" src="about:blank"></webview>
<webview id="devtools" src="about:blank"></webview>
  1. Click on the “Open” button
  2. Close the program
  3. Try deleting nw.exe

Note

This only occurs when the second parameter of browser.showDevTools is set.

Author: Fantashit

2 thoughts on “Program doesn’t fully quit when a webview’s devtools are opened in a webview

Comments are closed.