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

Issue 2500183002: Do not parse JSON in the browser. (Closed)

Created:
4 years, 1 month ago by please use gerrit instead
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), haraken, qsr+mojo_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not parse JSON in the browser. Chrome is tightly integrated into Android Pay until it supports loose integration into Android payment apps per http://crbug.com/620173. This means that Chrome needs to parse JSON objects from the website and pass them into Android Pay SDK. This parsing should happen in the renderer to be safe. BUG=665169 Committed: https://crrev.com/571cfaafb1f82776520c02ae43d480343adb3bb8 Cr-Commit-Position: refs/heads/master@{#432725}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use a Dictionary type in IDL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -97 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 8 chunks +10 lines, -30 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java View 4 chunks +4 lines, -5 lines 0 comments Download
M components/payments/payment_request.mojom View 1 1 chunk +38 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/AndroidPayMethodData.idl View 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/AndroidPayTokenization.idl View 1 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 8 chunks +102 lines, -39 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
please use gerrit instead
Tom, ptal. You've requested that we don't parse JSON in browser in here: http://crrev.com/2470463002
4 years, 1 month ago (2016-11-14 22:20:37 UTC) #4
Tom Sepez
LGTM
4 years, 1 month ago (2016-11-14 22:54:57 UTC) #5
please use gerrit instead
Marijn, ptal WebKit.
4 years, 1 month ago (2016-11-14 22:57:33 UTC) #7
please use gerrit instead
Nico, owners ptal third_party/WebKit/Source/modules/modules_idl_files.gni
4 years, 1 month ago (2016-11-15 15:47:16 UTC) #11
Nico
gni lgtm
4 years, 1 month ago (2016-11-15 15:53:59 UTC) #12
Marijn Kruisselbrink
sorry for the delay https://codereview.chromium.org/2500183002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2500183002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode398 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:398: const ScriptValue& parameters = tokenization.parameters(); ...
4 years, 1 month ago (2016-11-16 19:09:14 UTC) #13
please use gerrit instead
Marijn, ptal patch 2. https://codereview.chromium.org/2500183002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2500183002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode398 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:398: const ScriptValue& parameters = tokenization.parameters(); ...
4 years, 1 month ago (2016-11-16 20:23:23 UTC) #16
Marijn Kruisselbrink
lgtm
4 years, 1 month ago (2016-11-16 20:25:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500183002/20001
4 years, 1 month ago (2016-11-16 20:26:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500183002/20001
4 years, 1 month ago (2016-11-16 22:40:30 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-17 03:36:48 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 03:39:17 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/571cfaafb1f82776520c02ae43d480343adb3bb8
Cr-Commit-Position: refs/heads/master@{#432725}

Powered by Google App Engine
This is Rietveld 408576698