Skip to content

Normative what happens when users closing the window opened by PaymentRequestEvent.openWindow #299

@gogerald

Description

@gogerald

Right now, it is not easy for PH to detect the window is closing/closed (note that 'beforeunload' event can be triggered by page navigation and refresh). And UA may provide different ways to let users close the window to abort payment request in the middle. So I would like to suggest we let UA handles closing opened window so as to abort payment request and send 'AbortPaymentEvent' to the service worker without waiting for result.

Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions