File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -219,16 +219,19 @@ void ShellBrowserMainParts::Init() {
219
219
220
220
net::NetModule::SetResourceProvider (PlatformResourceProvider);
221
221
222
- int port = 0 ;
222
+ // FIXME: This is a workaround to fix #2206 by setting default port to non-zero.
223
+ // The real fix would be enabling chrome-devtools:// schema.
224
+ int port = 9222 ;
223
225
// See if the user specified a port on the command line (useful for
224
226
// automation). If not, use an ephemeral port by specifying 0.
225
227
226
228
if (command_line.HasSwitch (switches::kRemoteDebuggingPort )) {
227
229
int temp_port;
228
230
std::string port_str =
229
231
command_line.GetSwitchValueASCII (switches::kRemoteDebuggingPort );
232
+ // FIXME: should revert to `temp_port > 0` when chrome-devtools:// is enabled
230
233
if (base::StringToInt (port_str, &temp_port) &&
231
- temp_port > 0 && temp_port < 65535 ) {
234
+ temp_port >= 0 && temp_port < 65535 ) {
232
235
port = temp_port;
233
236
} else {
234
237
DLOG (WARNING) << " Invalid http debugger port number " << temp_port;
You can’t perform that action at this time.
0 commit comments