-
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
Feature Request: Add switch to disable the remote debugging server #3620
Comments
See https://code.google.com/p/chromium/issues/detail?id=349558#c4: |
I'm thinking of fixing it myself. |
Any updates on this issue? Looks like this should be a fix from nwjs in src/shell_browser_main_parts.cc.
The code above should try to detect a special port such as -1 and not to start the remote debugging? |
Will disable this in normal build. |
Is this going to be disabled for next release in normal build? |
This is fixed in git and will be available in the next nightly build. |
For those who are still using the older version of nwjs (say, 0.12.x), you can simply modify "nw/src/shell_browser_main_parts.cc" like this: Once it's rebuilt, nwjs will start listening on the remote debug port only if it's specified. (nw --remote-debugging-port=9222). If you want to disable this remote debugging port forever, you can use devtools_http_handler_.reset() (just like the else clause did). |
As nwjs starts it opens a tcp port on local host (for remote debugging / devtools) and listens on it.
I would prefer to be able to supply a command line switch that will tell nwjs not to open the port.
Motivation: Enterprise organizations with high security restrictions (e.g. banks) many times prevent end users from running apps that try to open and listen on ports (even on local host).
Note: At first I thought it is solely a Chromium issue (see: https://code.google.com/p/chromium/issues/detail?id=503566) however it seems that running a simple chromium installation doesn't open the mentioned port - so I guess this behavior is determined somewhere in the nwjs integration?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: