PaymentRequestEvent.OpenWindow() could fail in two different ways · Issue #361 · w3c/payment-handler · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PaymentRequestEvent.OpenWindow(url) could fail in two different ways:
reject - for example, "If url is about:blank, return a Promise rejected with a TypeError."
resolve with null - for example, "If url's origin is not the same as the service worker's origin associated with the payment handler, return a Promise resolved with null."
What's the purpose of having two ways to refuse a failed "OpenWindow()". Can we merge them for developer ergonomics?
PaymentRequestEvent.OpenWindow(url) could fail in two different ways:
What's the purpose of having two ways to refuse a failed "OpenWindow()". Can we merge them for developer ergonomics?
(link to the Chrome Implementation discussion: crbug.com/1046120)
The text was updated successfully, but these errors were encountered: