[Payment Request] Require user gesture for skip-UI.
Before this patch, calling `new PaymentRequest(https://foo.com).show()` without a user gesture could skip the payment sheet and go directly into the payment handler for https://foo.com, i.e., the skip-UI flow. This patch passes the user gesture flag from the renderer to the browser and prevents the skip-UI flow for the cases when show() was called without a user gesture. After this patch, calling `new PaymentRequest(https://foo.com).show()` without a user gesture will show the payment sheet, so the user will have to explicitly provide the user gesture by tapping the "Pay" button in the payment sheet before invoking the payment app. Bug: 828427 Change-Id: Iaea5fe3ede1bbd4b68f2c06f63bde4bd36a38e43 Reviewed-on: https://chromium-review.googlesource.com/993412Reviewed-by:Chris Palmer <palmer@chromium.org> Reviewed-by:
anthonyvd <anthonyvd@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#547862}
Showing
Please register or sign in to comment