CredentialsContainer: performCommonChecks() should take const Document& instead of acquiring it internally#62256
Merged
webkit-commit-queue merged 1 commit intoApr 8, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 378a7fa) Details |
cdumez
reviewed
Apr 8, 2026
| { | ||
| RefPtr document = this->document(); | ||
| RefPtr document = m_document.get(); |
Contributor
There was a problem hiding this comment.
RefPtr document = m_document; would compile nowadays.
378a7fa to
1ced303
Compare
Collaborator
|
EWS run on current version of this PR (hash 1ced303) Details
|
cdumez
approved these changes
Apr 8, 2026
Collaborator
|
Safe-Merge-Queue: Build #89010. |
…t& instead of acquiring it internally https://bugs.webkit.org/show_bug.cgi?id=311707 rdar://174293959 Reviewed by Chris Dumez. Change performCommonChecks() to a static free function that takes const Document& and returns bool. Callers acquire and null-check the document themselves before calling it. This keeps the function name semantically consistent, avoids ref churn, and removes the function from the header entirely. * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: Canonical link: https://commits.webkit.org/310779@main
1ced303 to
acecc70
Compare
Collaborator
|
Committed 310779@main (acecc70): https://commits.webkit.org/310779@main Reviewed commits have been landed. Closing PR #62256 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 ios-apple
acecc70
1ced303
🧪 win-tests