PaymentRequest: Implement error message for retry() on Android
In current implementation, retry() ignores |error| member. So, before this patch, nothing was displayed on the payment sheet UI even if retry() is invoked with custom error message. After this patch, JS authors can display a custom message on the payment sheet UI via |error| member when invoking retry(). If the |error| member is empty, UA displays default error message. This feature is behind a flag: chrome://flags/#enable-experimental-web-platform-features Manual Test: wpt/payment-request/payment-response/retry-method-manual.https.html wpt/payment-request/PaymentValidationErrors/retry-shows-error-member-manual.https.html Bug: 861704, 942204 Change-Id: Id23a2924ca1d5c2f32416c7de6210357bf4e6296 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575307 Commit-Queue: Jinho Bang <jinho.bang@samsung.com> Reviewed-by:Ted Choc <tedchoc@chromium.org> Reviewed-by:
Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#657665}
Showing
Please register or sign in to comment