WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
276088
[Apple Pay] PaymentRequestValidator should adopt per-currency checks for total amounts
https://bugs.webkit.org/show_bug.cgi?id=276088
Summary
[Apple Pay] PaymentRequestValidator should adopt per-currency checks for tota...
Abrar Rahman Protyasha
Reported
2024-07-01 12:29:04 PDT
Our arbitrary 8 digit check in PaymentRequestValidator::validateTotal() is incorrect and does not reflect the maximum total amount possible in a payment request. As such, we will be removing this check in
bug 276087
. Unfortunately this means that our error mode goes from "Total amount is too large" to an opaque ABORT_ERR exception. The maximum amount is modulated by various factors; one of which is the varying minor decimal places per currency. To this end, and to restore the more descriptive error mode we lose as resolution to
bug 276087
, we should adopt per-currency checks for total amounts.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-07-01 12:29:26 PDT
<
rdar://problem/130913327
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug