Commit 3f3f4d39 authored by John Chen's avatar John Chen Committed by Commit Bot

[ChromeDriver] Don't crash with unknown status

In W3C mode, when execution of a command results in an unknown status,
ChromeDriver was crashing due to an uninitialized variable. Now fixed.

Bug: chromedriver:3007
Change-Id: I662dfdf9d4d6b5de3396f90258e1df3d1cfebae5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693168
Commit-Queue: John Chen <johnchen@chromium.org>
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Auto-Submit: John Chen <johnchen@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675788}
parent 98e0275d
......@@ -1161,6 +1161,12 @@ HttpHandler::PrepareStandardResponse(
response.reset(
new net::HttpServerResponseInfo(net::HTTP_INTERNAL_SERVER_ERROR));
break;
default:
DCHECK(false);
response.reset(
new net::HttpServerResponseInfo(net::HTTP_INTERNAL_SERVER_ERROR));
break;
}
if (!value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment