• Rouslan Solomakhin's avatar
    [Web Payment][Desktop] Send abort event to payment handler. · 13947ae3
    Rouslan Solomakhin authored
    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: default avatarLiquan (Max) Gu <maxlg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#771337}
    13947ae3
payment_handler_aborter.html 463 Bytes