[PaymentRequest] Remove currencySystem member
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2018 17:09:59 +0000 (17:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2018 17:09:59 +0000 (17:09 +0000)
commit22262291a0a2e3c262f45e2858d1775553cd71dd
tree48cda226eb24ecc59a6195da7b4894e067820098
parent663ff683a33bc6582265d14858caa93499d63d74
[PaymentRequest] Remove currencySystem member
https://bugs.webkit.org/show_bug.cgi?id=185860

Patch by Jinho Bang <zino@chromium.org> on 2018-05-24
Reviewed by Andy Estes.

Source/WebCore:

After a long discussion, Web Payment Working Group decided to remove
the `currencySystem` member[1]. The currency code should be well-formed
3-letter alphabetic code and is allowed even if that is not part of
the official ISO 4217 list.

[1] https://github.com/w3c/payment-request/pull/694

Test: http/tests/inspector/paymentrequest/payment-request-internal-properties.https.html

* Modules/paymentrequest/PaymentCurrencyAmount.h:
* Modules/paymentrequest/PaymentCurrencyAmount.idl:
* Modules/paymentrequest/PaymentRequest.cpp:
(WebCore::checkAndCanonicalizeAmount):
(WebCore::checkAndCanonicalizeTotal):
* inspector/WebInjectedScriptHost.cpp:
(WebCore::objectForPaymentCurrencyAmount):

LayoutTests:

* http/tests/inspector/paymentrequest/payment-request-internal-properties.https-expected.txt:
* http/tests/inspector/paymentrequest/payment-request-internal-properties.https.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/paymentrequest/payment-request-internal-properties.https-expected.txt
LayoutTests/http/tests/inspector/paymentrequest/payment-request-internal-properties.https.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/paymentrequest/PaymentCurrencyAmount.h
Source/WebCore/Modules/paymentrequest/PaymentCurrencyAmount.idl
Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp
Source/WebCore/inspector/WebInjectedScriptHost.cpp