[Web Payment][Desktop] Send abort event to payment handler.
Before this patch, aborting payment on desktop would succeed only before the payment app has been invoked. The invoked payment app was not consulted whether it could be aborted. This patch delegates abort handling on desktop to the payment app. This patch also removes the identity callback from the desktop implementation of PaymentRequest, because aborting requires ServiceWorkerPaymentApp to know the service worker registration ID, which is also used for payment handler host logging, and ServiceWorkerPaymentApp now has a reference to the payment handler host. After this patch, the invoked payment handler receives the abort event and determines whether abort should be performed. (Android already does that.) Bug: 1083242 Change-Id: I267ad820ef06b17fb88bd8b948c22b0e07145fae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208105 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#771337}
Showing
Please register or sign in to comment