Index: chrome/test/webdriver/webdriver_session.cc |
diff --git a/chrome/test/webdriver/webdriver_session.cc b/chrome/test/webdriver/webdriver_session.cc |
index 6faabd6f95e33c377700c94a8e52819552a79bd9..af17a5c982ded49a7d38b775f148579bad7bcb44 100644 |
--- a/chrome/test/webdriver/webdriver_session.cc |
+++ b/chrome/test/webdriver/webdriver_session.cc |
@@ -1471,7 +1471,7 @@ Error* Session::ExecuteScriptAndParseValue(const FrameId& frame_id, |
return error; |
scoped_ptr<Value> value(base::JSONReader::ReadAndReturnError( |
- response_json, true, NULL, NULL)); |
+ response_json, base::JSON_ALLOW_TRAILING_COMMAS, NULL, NULL)); |
if (!value.get()) |
return new Error(kUnknownError, "Failed to parse script result"); |
if (value->GetType() != Value::TYPE_DICTIONARY) |