Skip to content

Reduce unsafeness of pay-related code #47047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

@annevk annevk self-assigned this Jun 23, 2025
@annevk annevk added the WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit). label Jun 23, 2025
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jun 23, 2025
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #41229 (91a7ef7)

⚠️ Found 11 fixed files! Please update expectations in Source/[Project]/SaferCPPExpectations by running the following command and update your pull request:

  • Tools/Scripts/update-safer-cpp-expectations -p WebCore --UncheckedCallArgsChecker Modules/applepay-ams-ui/ApplePayAMSUIPaymentHandler.cpp --UncheckedLocalVarsChecker Modules/applepay/ApplePaySession.cpp --UncountedCallArgsChecker Modules/paymentrequest/MerchantValidationEvent.cpp Modules/paymentrequest/PaymentRequest.cpp Modules/paymentrequest/PaymentResponse.cpp Modules/applepay/PaymentCoordinator.cpp Modules/paymentrequest/PaymentRequestUpdateEvent.cpp Modules/applepay/ApplePaySetup.cpp testing/MockPaymentCoordinator.cpp Modules/applepay-ams-ui/ApplePayAMSUIPaymentHandler.cpp --UncountedLocalVarsChecker Modules/paymentrequest/PaymentRequest.cpp Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp Modules/applepay/ApplePaySession.cpp Modules/applepay/ApplePaySetup.cpp platform/graphics/cocoa/controls/ApplePayButtonCocoa.mm

@annevk annevk removed the merging-blocked Applied to prevent a change from being merged label Jun 23, 2025
@annevk annevk force-pushed the eng/Reduce-unsafeness-of-pay-related-code branch from 91a7ef7 to 51c6686 Compare June 23, 2025 13:15
@annevk annevk marked this pull request as ready for review June 23, 2025 16:56
@@ -108,16 +108,16 @@ static PKPaymentButtonStyle toPKPaymentButtonStyle(ApplePayButtonStyle style)
context.scale(FloatSize(1, -1));

auto logicalRect = borderRect.rect();
const auto& applePayButtonPart = owningApplePayButtonPart();
const Ref applePayButtonPart = owningApplePayButtonPart();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should drop the const

@annevk annevk force-pushed the eng/Reduce-unsafeness-of-pay-related-code branch from 51c6686 to 0fe8acd Compare June 24, 2025 05:26
@annevk annevk added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Reduce-unsafeness-of-pay-related-code branch from 0fe8acd to 02a8fbd Compare June 24, 2025 06:07
@webkit-commit-queue
Copy link
Collaborator

Committed 296553@main (02a8fbd): https://commits.webkit.org/296553@main

Reviewed commits have been landed. Closing PR #47047 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 02a8fbd into WebKit:main Jun 24, 2025
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jun 24, 2025
@annevk annevk deleted the eng/Reduce-unsafeness-of-pay-related-code branch June 24, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebCore Misc. For miscellaneous bugs in the WebCore framework (and not JavaScriptCore or WebKit).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants