Writing Tools test CompositionWithMultipleUndosAndRestarts fails on mac.#30894
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Jul 22, 2024
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 83c6835) Details |
pxlcoder
reviewed
Jul 17, 2024
rr-codes
reviewed
Jul 17, 2024
Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm
Outdated
Show resolved
Hide resolved
rr-codes
reviewed
Jul 17, 2024
Contributor
should be in the commit message |
rr-codes
reviewed
Jul 17, 2024
Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm
Outdated
Show resolved
Hide resolved
rr-codes
reviewed
Jul 17, 2024
Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm
Outdated
Show resolved
Hide resolved
83c6835 to
c589b7d
Compare
Collaborator
|
EWS run on previous version of this PR (hash c589b7d) Details |
c589b7d to
d0d08d3
Compare
Collaborator
|
EWS run on previous version of this PR (hash d0d08d3) Details |
pxlcoder
reviewed
Jul 18, 2024
Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm
Outdated
Show resolved
Hide resolved
Contributor
|
I believe these comments still need to be addressed |
d0d08d3 to
539350b
Compare
Collaborator
|
EWS run on previous version of this PR (hash 539350b) Details |
pxlcoder
reviewed
Jul 19, 2024
Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm
Outdated
Show resolved
Hide resolved
539350b to
d3d76a2
Compare
Collaborator
|
EWS run on previous version of this PR (hash d3d76a2) Details
|
rr-codes
approved these changes
Jul 19, 2024
d3d76a2 to
fb19112
Compare
Collaborator
|
EWS run on previous version of this PR (hash fb19112) Details |
fb19112 to
fee736c
Compare
Collaborator
|
EWS run on current version of this PR (hash fee736c) Details |
fee736c to
9b9eae7
Compare
https://bugs.webkit.org/show_bug.cgi?id=276700 rdar://131891447 Reviewed by Richard Robinson. This test was failing because we get the final set of text to replace, we were not comparing it against the previously replaced range correctly. The previous range was adjusted to the the actual range of the text before it was stored but we were comparing that against the full range of text, which was incorrect and also if the replaced text was shorter, it would cause a debug assertion which then caused the web process to crash and the completion handlers to not be called and crashed the UI process as well. This adds a way to have the completion handlers be called and not do any work, so the UI process won't crash as well, and also allows for the handler to replace the text without running the animation again, as the final replace is always the same as the second to last replace, and there is nothing to animate for that final replace, so we skip the animation step. * Source/WebCore/page/ChromeClient.h: (WebCore::ChromeClient::addSourceTextAnimation): * Source/WebCore/page/writing-tools/WritingToolsController.mm: (WebCore::WritingToolsController::compositionSessionDidReceiveTextWithReplacementRange): * Source/WebCore/page/writing-tools/WritingToolsTypes.h: * Source/WebKit/DerivedSources-input.xcfilelist: * Source/WebKit/DerivedSources.make: * Source/WebKit/Scripts/webkit/messages.py: (headers_for_type): * Source/WebKit/Shared/TextAnimationTypes.serialization.in: Renamed from Source/WebKit/Shared/TextAnimationType.serialization.in. * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _enableSourceTextAnimationAfterElementWithID:]): (-[WKWebView _enableFinalTextAnimationForElementWithID:]): * Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm: * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::addTextAnimationForAnimationID): (WebKit::WebPageProxy::callCompletionHandlerForAnimationID): * Source/WebKit/UIProcess/PageClient.h: * Source/WebKit/UIProcess/TextAnimationTypes.h: Renamed from Source/WebKit/UIProcess/TextAnimationType.h. * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/WebPageProxyInternals.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView callCompletionHandlerForAnimationID:]): * Source/WebKit/UIProcess/mac/WKTextAnimationManager.h: * Source/WebKit/UIProcess/mac/WKTextAnimationManager.mm: (-[WKTextAnimationManager addTextAnimationForAnimationID:withData:]): (-[WKTextAnimationManager restoreTextAnimationType]): * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::addSourceTextAnimation): * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h: * Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.h: * Source/WebKit/WebProcess/WebPage/Cocoa/TextAnimationController.mm: (WebKit::remainingCharacterRange): (WebKit::TextAnimationController::addInitialTextAnimation): (WebKit::TextAnimationController::addSourceTextAnimation): (WebKit::TextAnimationController::addDestinationTextAnimation): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::addTextAnimationForAnimationID): (WebKit::WebPage::addSourceTextAnimation): * Source/WebKit/WebProcess/WebPage/WebPage.h: Canonical link: https://commits.webkit.org/281219@main
9b9eae7 to
c59eb74
Compare
Collaborator
|
Committed 281219@main (c59eb74): https://commits.webkit.org/281219@main Reviewed commits have been landed. Closing PR #30894 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.
🛠 watch-sim
c59eb74
fee736c
🧪 wpe-wk2🧪 api-wpe🧪 gtk-wk2🧪 api-gtk