Repository navigation
Conversation
findNext, findPrevious, replaceCurrent and replaceAll on an editor that had unmounted waited for fresh matches that never came, so an app awaiting one after closing a file hung forever. They now resolve at once with null, false or 0, as clearSearch already did.
An editor opened or edited in a background tab never parsed, because the engine only started its work from an animation frame and a hidden tab gets none, so its highlight waited until the tab came back. The engine now starts from a posted task while the tab is hidden and keeps going without waiting for a frame there.
When two editors on a page threw while drawing the same frame, only the first error reached the console and the page's error handlers, so the second failure stayed hidden until the first was fixed. Each error is now rethrown in its own microtask.
On iOS, shaking to undo after typing in another field on the page undid that field's text and moved the focus there, even while the editor was focused. WebKit sends the undo as a cancelable beforeinput aimed at the other field, so the editor now cancels it and undoes its own text.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This branch has not been deployed
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.
four fixes, plus one in the example and a small cleanup:
findNext,findPrevious,replaceCurrentandreplaceAllon an unmounted editor waited for matches that never came, so an app awaiting one after closing a file hung forever. they resolve at once with null, false or 0 now, likeclearSearchalready did.beforeinputaimed at the other field, so the editor cancels it and undoes its own text.the example stops Safari zooming in when the find bar takes the focus, and the cache move of an edit loses a branch it could never reach.
stacked on #40 (its own commits)