Skip to content
Permalink
Browse files
Add PaymentHandler reference when validating the merchant
https://bugs.webkit.org/show_bug.cgi?id=241520
<rdar://problem/94609087>

Reviewed by Wenson Hsieh.

* Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp:
(WebCore::PaymentRequest::completeMerchantValidation):

Canonical link: https://commits.webkit.org/251469@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
dcrousso committed Jun 10, 2022
1 parent c225c61 commit 4a61df0886bdc588494559317ff29d89fb2abaf2
Showing 1 changed file with 2 additions and 1 deletion.
@@ -604,7 +604,8 @@ ExceptionOr<void> PaymentRequest::completeMerchantValidation(Event& event, Ref<D
return;
}

auto exception = activePaymentHandler()->merchantValidationCompleted(m_merchantSessionPromise->result());
Ref activePaymentHandler = *this->activePaymentHandler();
auto exception = activePaymentHandler->merchantValidationCompleted(m_merchantSessionPromise->result());
if (exception.hasException()) {
abortWithException(exception.releaseException());
return;

0 comments on commit 4a61df0

Please sign in to comment.