Skip to content

Conversation

@annevk annevk requested a review from cdumez as a code owner July 8, 2025 07:57
@annevk annevk self-assigned this Jul 8, 2025
@annevk annevk added the WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). label Jul 8, 2025
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jul 8, 2025
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #42968 (8609899)

❌ Found 3 failing files with 8 issues. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming.
(cc @rniwa)

⚠️ Found 4 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 WebKit --UncheckedCallArgsChecker WebProcess/Plugins/PDF/UnifiedPDF/PDFScrollingPresentationController.mm --UncountedCallArgsChecker WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm --UnretainedCallArgsChecker WebProcess/Plugins/PDF/PDFPluginBase.mm UIProcess/PDF/WKPDFHUDView.mm

@annevk annevk removed the merging-blocked Applied to prevent a change from being merged label Jul 8, 2025
@annevk annevk force-pushed the eng/Reduce-unsafeness-in-PDF-code-even-more branch from 8609899 to 3a9eefd Compare July 8, 2025 12:32
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #42990 (3a9eefd)

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

  • Tools/Scripts/update-safer-cpp-expectations -p WebKit --UncountedCallArgsChecker WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm

@annevk annevk force-pushed the eng/Reduce-unsafeness-in-PDF-code-even-more branch from 3a9eefd to 45675be Compare July 8, 2025 15:23
@annevk annevk added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jul 8, 2025
https://bugs.webkit.org/show_bug.cgi?id=295577

Reviewed by Chris Dumez.

Apply https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines and
notably introduce lazyInitialize for OSObjectPtr so WorkQueue's
dispatchQueue() becomes "protected". And inline a couple things in
GraphicsContextCG so platformContext() becomes "protected".

Canonical link: https://commits.webkit.org/297117@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Reduce-unsafeness-in-PDF-code-even-more branch from 45675be to 6539fb7 Compare July 8, 2025 16:29
@webkit-commit-queue
Copy link
Collaborator

Committed 297117@main (6539fb7): https://commits.webkit.org/297117@main

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

@webkit-commit-queue webkit-commit-queue merged commit 6539fb7 into WebKit:main Jul 8, 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 Jul 8, 2025
@annevk annevk deleted the eng/Reduce-unsafeness-in-PDF-code-even-more branch July 8, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants