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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentCurrencyAmount.idl

Issue 2271113002: Accept any string for currency code in PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed 640847 Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://w3c.github.io/browser-payment-api/#paymentcurrencyamount 5 // https://w3c.github.io/browser-payment-api/#paymentcurrencyamount
6 6
7 [ 7 [
8 RuntimeEnabled=PaymentRequest 8 RuntimeEnabled=PaymentRequest
9 ] dictionary PaymentCurrencyAmount { 9 ] dictionary PaymentCurrencyAmount {
10 required DOMString currency; 10 [TreatNullAs=NullString] required DOMString currency;
please use gerrit instead 2016/08/25 16:47:38 Let's not allow nulls. At least an empty string sh
haraken 2016/08/26 01:20:05 Right, [TreatNullAs] must be accompanied with Empt
pals 2016/08/26 07:20:26 ['Null currency code should throw', null, function
please use gerrit instead 2016/08/26 17:01:37 OK
11 required DOMString value; 11 required DOMString value;
12 }; 12 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698