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

Issue 2830683002: Log duplicate shipping option ID warning in web payments API. (Closed)

Created:
3 years, 8 months ago by please use gerrit instead
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews, gogerald+paymentswatch_chromium.org, haraken, mahmadi+paymentswatch_chromium.org, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Log duplicate shipping option ID warning in web payments API. Before this patch, passing duplicate shipping option identifiers into web payments API was silently treated as an indicator of invalid shipping address. This matches the spec, but the web developer may be confused. The fix is to add a warning message in console: "Duplicate shipping option identifier '<id>' is treated as an invalid address indicator." Spec: https://w3c.github.io/browser-payment-api/#constructor (See step 8, "Process shipping options.") BUG=711677 Review-Url: https://codereview.chromium.org/2830683002 Cr-Commit-Position: refs/heads/master@{#465751} Committed: https://chromium.googlesource.com/chromium/src/+/fed3fc6630e9ea6248153708b7f9a301b98624c4

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/payments/payment-request-interface-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 3 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
please use gerrit instead
Marijn, ptal.
3 years, 8 months ago (2017-04-19 15:09:31 UTC) #4
Marijn Kruisselbrink
lgtm, although you'll have to update the test expectations to include the new warning
3 years, 8 months ago (2017-04-19 19:03:07 UTC) #8
Marijn Kruisselbrink
https://codereview.chromium.org/2830683002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2830683002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode201 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:201: "Duplicate shipping option identifiers are " nit: would it ...
3 years, 8 months ago (2017-04-19 19:03:48 UTC) #9
please use gerrit instead
Sending to cq. https://codereview.chromium.org/2830683002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/2830683002/diff/1/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode201 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:201: "Duplicate shipping option identifiers are " ...
3 years, 8 months ago (2017-04-19 19:46:01 UTC) #12
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/2830683002/20001
3 years, 8 months ago (2017-04-19 19:46:29 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/2830683002/20001
3 years, 8 months ago (2017-04-19 19:47:47 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 21:18:39 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/fed3fc6630e9ea6248153708b7f9...

Powered by Google App Engine
This is Rietveld 408576698