Skip to content

Commit

Permalink
Add PaymentHandler reference when validating the merchant
Browse files Browse the repository at this point in the history
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 4a61df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4a61df0

Please sign in to comment.