Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: extensions/renderer/send_request_natives.cc

Issue 2709103004: [Content] Allow V8ValueConverter to convert -0 to an integer (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/resources/schema_utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/send_request_natives.cc
diff --git a/extensions/renderer/send_request_natives.cc b/extensions/renderer/send_request_natives.cc
index 4a3281417e0bc64d0c6222cf236ac95a850acc47..5824bc0ea2b998445db8c2b3635977dda6ecc8d9 100644
--- a/extensions/renderer/send_request_natives.cc
+++ b/extensions/renderer/send_request_natives.cc
@@ -48,6 +48,9 @@ void SendRequestNatives::StartRequest(
// we shouldn't really be doing it (e.g. for the sake of the storage API).
converter->SetFunctionAllowed(true);
+ // See http://crbug.com/694248.
+ converter->SetConvertNegativeZeroToInt(true);
+
if (!preserve_null_in_objects)
converter->SetStripNullFromObjects(true);
« no previous file with comments | « extensions/renderer/resources/schema_utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698