Bug 267321
| Summary: | WebPaymentCoordinatorProxy should not send IPC to WebProcess when the connection is null | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abrar Rahman Protyasha <a_protyasha> |
| Component: | WebKit Misc. | Assignee: | Abrar Rahman Protyasha <a_protyasha> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | a_protyasha, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Abrar Rahman Protyasha
It is possible for WebPaymentCoordinatorProxy to send IPC messages to the WP when the connection is null. This can happen when a WP terminates while a payment sheet is showing, and since the proxy will be alive, it will end up sending a DidCancelPaymentSession message in its destructor.
Unfortunately, this causes the UI process to terminate, which is a bad user experience for, say, Safari users. We should make sure WebPaymentCoordinatorProxy is smart enough to not send this IPC message if the WP is not alive.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/120772845>
Abrar Rahman Protyasha
Pull request: https://github.com/WebKit/WebKit/pull/22573
EWS
Committed 273018@main (133a77cf0f1d): <https://commits.webkit.org/273018@main>
Reviewed commits have been landed. Closing PR #22573 and removing active labels.