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

Issue 2271113002: Accept any string for currency code in PaymentRequest. (Closed)

Created:
4 years, 3 months ago by pals
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Accept any string for currency code in PaymentRequest. BUG=636723, 640847 Committed: https://crrev.com/25156023212b2fa380ccb48b2597549119003ec2 Cr-Commit-Position: refs/heads/master@{#415831}

Patch Set 1 #

Patch Set 2 : Test #

Patch Set 3 : Ellipsize #

Patch Set 4 : Ellipsize after 6 #

Patch Set 5 : Added tests #

Patch Set 6 : Fixed 640847 #

Total comments: 23

Patch Set 7 : minus java changes #

Patch Set 8 : Fixed issues #

Patch Set 9 : Added browser side validation #

Total comments: 6

Patch Set 10 : StringBuilder #

Patch Set 11 : Allow null as per spec #

Messages

Total messages: 58 (30 generated)
pals
PTAL.
4 years, 3 months ago (2016-08-25 06:47:47 UTC) #3
please use gerrit instead
Good start! https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode532 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:532: private static final String ELLIPSIS = "..."; ...
4 years, 3 months ago (2016-08-25 16:47:38 UTC) #6
haraken
https://codereview.chromium.org/2271113002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl File third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl (right): https://codereview.chromium.org/2271113002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl#newcode10 third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl:10: [TreatNullAs=NullString] required DOMString currency; On 2016/08/25 16:47:38, rouslan wrote: ...
4 years, 3 months ago (2016-08-26 01:20:05 UTC) #8
pals
PTAL. https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode532 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:532: private static final String ELLIPSIS = "..."; On ...
4 years, 3 months ago (2016-08-26 07:20:26 UTC) #9
please use gerrit instead
https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode532 chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java:532: private static final String ELLIPSIS = "..."; On 2016/08/26 ...
4 years, 3 months ago (2016-08-26 17:01:37 UTC) #10
pals
PTAL. I'm working on the UI related changes here https://codereview.chromium.org/2281913002/ https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java (right): https://codereview.chromium.org/2271113002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java#newcode532 ...
4 years, 3 months ago (2016-08-27 11:16:31 UTC) #11
please use gerrit instead
1) Please update the comment in mojom interface definition: https://cs.chromium.org/chromium/src/third_party/WebKit/public/platform/modules/payments/payment_request.mojom?rcl=0&l=39 +tsepez to review mojom. 2) ...
4 years, 3 months ago (2016-08-27 15:30:14 UTC) #17
pals
Updated the browser side validation code as well. PTAL.
4 years, 3 months ago (2016-08-29 07:22:28 UTC) #22
please use gerrit instead
You're very close :-) https://codereview.chromium.org/2271113002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java File chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java (right): https://codereview.chromium.org/2271113002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java#newcode106 chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java:106: private static String longString2048() { ...
4 years, 3 months ago (2016-08-29 14:23:40 UTC) #23
Tom Sepez
Ok, my only concern is whether we inject this string back into an HTML context ...
4 years, 3 months ago (2016-08-29 16:42:02 UTC) #24
please use gerrit instead
On 2016/08/29 16:42:02, Tom Sepez wrote: > Ok, my only concern is whether we inject ...
4 years, 3 months ago (2016-08-29 17:10:39 UTC) #25
Tom Sepez
> > We don't inject this string into HTML anywhere. Ok, LGTM.
4 years, 3 months ago (2016-08-29 17:13:32 UTC) #26
pals
Please take another look. https://codereview.chromium.org/2271113002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java File chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java (right): https://codereview.chromium.org/2271113002/diff/200001/chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java#newcode106 chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java:106: private static String longString2048() { ...
4 years, 3 months ago (2016-08-30 09:02:10 UTC) #31
haraken
Sorry about the late reply... > https://codereview.chromium.org/2271113002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl > File third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl > (right): > > https://codereview.chromium.org/2271113002/diff/140001/third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl#newcode10 ...
4 years, 3 months ago (2016-08-30 09:38:27 UTC) #33
Yuki
On 2016/08/30 09:38:27, haraken wrote: > Sorry about the late reply... > > > > ...
4 years, 3 months ago (2016-08-30 10:23:50 UTC) #34
pals
On 2016/08/30 10:23:50, Yuki wrote: > On 2016/08/30 09:38:27, haraken wrote: > > Sorry about ...
4 years, 3 months ago (2016-08-30 13:20:04 UTC) #35
haraken
On 2016/08/30 13:20:04, pals wrote: > On 2016/08/30 10:23:50, Yuki wrote: > > On 2016/08/30 ...
4 years, 3 months ago (2016-08-30 14:18:00 UTC) #36
please use gerrit instead
On 2016/08/30 14:18:00, haraken wrote: > On 2016/08/30 13:20:04, pals wrote: > > On 2016/08/30 ...
4 years, 3 months ago (2016-08-30 16:30:54 UTC) #37
pals
Done. Please review.
4 years, 3 months ago (2016-08-31 04:36:15 UTC) #38
haraken
LGTM on my side.
4 years, 3 months ago (2016-08-31 07:49:28 UTC) #43
please use gerrit instead
lgtm
4 years, 3 months ago (2016-08-31 14:03:16 UTC) #44
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/2271113002/240001
4 years, 3 months ago (2016-08-31 14:26:11 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/250206)
4 years, 3 months ago (2016-08-31 14:32:17 UTC) #49
pals
+dfalcantara@ for CurrencyStringFormatterTest.java. PTAL.
4 years, 3 months ago (2016-08-31 14:47:55 UTC) #51
gone
That file lgtm
4 years, 3 months ago (2016-08-31 17:31:06 UTC) #52
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/2271113002/240001
4 years, 3 months ago (2016-09-01 01:08:27 UTC) #54
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 3 months ago (2016-09-01 01:12:31 UTC) #56
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 01:14:38 UTC) #58
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/25156023212b2fa380ccb48b2597549119003ec2
Cr-Commit-Position: refs/heads/master@{#415831}

Powered by Google App Engine
This is Rietveld 408576698