-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performing a no-op animated resize cancels any pending resize immedia…
…tely https://bugs.webkit.org/show_bug.cgi?id=242233 Reviewed by Wenson Hsieh. * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _beginAnimatedResizeWithUpdates:]): _beginAnimatedResizeWithUpdates cancels the resize and completes immediately if the update block didn't change any relevant state. For clients who want to do multiple animated resizes in a row, this can result in a discontinuity if a impactful animated resize is performed, followed by a no-op animated resize before the results of the first resize arrive: this results in the first resize being cancelled, and the web view being shown in an incompletely-updated state. To avoid this, just avoid cancelling no-op resizes when there is already a pending resize. * Tools/TestWebKitAPI/Tests/WebKitCocoa/AnimatedResize.mm: (TEST): Add a test. Also move all of the other tests into an AnimatedResize test group to make it easy to run them together. Add a missing `_endAnimatedResize` to ResizeWithContentHiddenWithSubsequentNoOpResizeCompletes, because previously it was depending on this bug. Canonical link: https://commits.webkit.org/252106@main
- Loading branch information
1 parent
1671a01
commit b18af70
Showing
2 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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