Move off of willBeginWritingToolsSession:forProofreadingReview:requestContexts:#62335
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Apr 10, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash f61d971) Details
|
aprotyas
approved these changes
Apr 9, 2026
Member
aprotyas
left a comment
There was a problem hiding this comment.
small typo in the commit message:
no
tlonger needed
Comment on lines
+2588
to
+2590
| BOOL proofreadingReview = NO; | ||
| if ([session respondsToSelector:@selector(proofreadingSessionType)] && [session proofreadingSessionType] == WTProofreadingSessionTypeGrammarChecking) | ||
| proofreadingReview = YES; |
Member
There was a problem hiding this comment.
optional: I think it can be a little more succinct
Suggested change
| BOOL proofreadingReview = NO; | |
| if ([session respondsToSelector:@selector(proofreadingSessionType)] && [session proofreadingSessionType] == WTProofreadingSessionTypeGrammarChecking) | |
| proofreadingReview = YES; | |
| BOOL proofreadingReview = [session respondsToSelector:@selector(proofreadingSessionType)] && [session proofreadingSessionType] == WTProofreadingSessionTypeGrammarChecking; |
| }); | ||
| } | ||
|
|
||
|
|
aprotyas
reviewed
Apr 9, 2026
| { | ||
| [self willBeginWritingToolsSession:session forProofreadingReview:NO requestContexts:completion]; | ||
| BOOL proofreadingReview = NO; | ||
| if ([session respondsToSelector:@selector(proofreadingSessionType)] && [session proofreadingSessionType] == WTProofreadingSessionTypeGrammarChecking) |
Member
There was a problem hiding this comment.
oh, this property needs an SPI decl too
f61d971 to
010e537
Compare
Collaborator
|
EWS run on previous version of this PR (hash 010e537) Details
|
010e537 to
2732f8f
Compare
Collaborator
|
EWS run on previous version of this PR (hash 2732f8f) Details
|
2732f8f to
861a346
Compare
Collaborator
|
EWS run on current version of this PR (hash 861a346) Details |
…tContexts: https://bugs.webkit.org/show_bug.cgi?id=311794 rdar://174380999 Reviewed by Abrar Rahman Protyasha. This specific call is no longer needed, we will use willBeginWritingToolsSession:requestContexts: with the requisite information about if this is for proofreading review on the session object. * Source/WebCore/PAL/pal/spi/cocoa/WritingToolsSPI.h: * Source/WebKit/Configurations/AllowedSPI.toml: * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView willBeginWritingToolsSession:requestContexts:]): Canonical link: https://commits.webkit.org/310945@main
861a346 to
c177a10
Compare
Collaborator
|
Committed 310945@main (c177a10): https://commits.webkit.org/310945@main Reviewed commits have been landed. Closing PR #62335 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.
🛠 vision-apple
c177a10
861a346
🛠 win🧪 win-tests