Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: LexicalClipboard pasting over mention crashes Chrome #5950

Closed
danielbuechele opened this issue Apr 24, 2024 · 2 comments · Fixed by #5952
Closed

Bug: LexicalClipboard pasting over mention crashes Chrome #5950

danielbuechele opened this issue Apr 24, 2024 · 2 comments · Fixed by #5952
Assignees
Labels
core Reconciler, DOM, Selection, Node, Events, Composition

Comments

@danielbuechele
Copy link

Lexical version: 0.14.5

Steps To Reproduce

  1. Open Lexical Playground in Chrome and add an @-mention
  2. Copy some any text to your clipboard
  3. Create a selection that starts at the beginning of the @-mention (it can end within, at the end or after the mention)
  4. Now paste from clipboard

The current behavior

In most cases this crashes Chrome, in rare cases it only takes very long and produces a warning [Violation] 'paste' handler took 95275ms. This affects up-to-date Chrome on macOS and Windows. Safari on macOS is not affected.

In a case where Chrome wasn't entirely crashing I was able to take this performance trace (sorry, I only took a screenshot instead of exporting the trace)
image

@ivailop7
Copy link
Collaborator

I reproduced. Wow!

@thegreatercurve
Copy link
Contributor

Closed by #5956

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Reconciler, DOM, Selection, Node, Events, Composition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants