From 4a61df0886bdc588494559317ff29d89fb2abaf2 Mon Sep 17 00:00:00 2001 From: Devin Rousso Date: Fri, 10 Jun 2022 21:44:14 +0000 Subject: [PATCH] Add PaymentHandler reference when validating the merchant https://bugs.webkit.org/show_bug.cgi?id=241520 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 --- Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp b/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp index f7d0095ae20a..a56bfafe2cb5 100644 --- a/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp +++ b/Source/WebCore/Modules/paymentrequest/PaymentRequest.cpp @@ -604,7 +604,8 @@ ExceptionOr PaymentRequest::completeMerchantValidation(Event& event, RefmerchantValidationCompleted(m_merchantSessionPromise->result()); + Ref activePaymentHandler = *this->activePaymentHandler(); + auto exception = activePaymentHandler->merchantValidationCompleted(m_merchantSessionPromise->result()); if (exception.hasException()) { abortWithException(exception.releaseException()); return;