Description
NWJS Version : nwjs-sdk-v0.50.3
Operating System : Windows 10 Enterprise win-x64
Expected behavior
When we run the following command to run nw.js headless:
C:\nwjs-sdk-v0.50.3-win-x64\nw.exe --disable-extensions --disable-gpu --disable-popup-blocking --enable-automation --enable-logging --headless --no-sandbox --nwapp=<PATH_TO_APP> --remote-debugging-port=9222 --user-data-dir="<PATH_TO_USER_FOLDER>" --window-size=1280,1696
And when we invoke:
http://localhost:9222/json/list
we should get a response back that details the application information
Actual behavior
We get a response back from http://localhost:9222/json/list that is just "[ ]"
How to reproduce
With any existing NW.js application, run the following command (replace <PATH_TO_APP> with the root of your nwjs application and replace <PATH_TO_USER_FOLDER> with any user temp directory):
C:\nwjs-sdk-v0.50.3-win-x64\nw.exe --disable-extensions --disable-gpu --disable-popup-blocking --enable-automation --enable-logging --headless --no-sandbox --nwapp=<PATH_TO_APP> --remote-debugging-port=9222 --user-data-dir="<PATH_TO_USER_FOLDER>" --window-size=1280,1696
Then invoke:
http://localhost:9222/json/list
and the response will be "[ ]"
if you run the command above without the headless option and invoke http://localhost:9222/json/list you'll get a response will all the application information.
The expectation is the response running headless vs. non headless should be the same.