Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Browser crashes with specific cursor movement around images #1910
Given specific editor contents and specific cursor position Chrome and Safari will reliably crash if you hit
Steps for Reproduction
Mac. Chrome and Safari.
I think it is more accurate to say the browser locks up but it looks like it affects vanilla contenteditable:
The image / base64 image does not appear to be a factor: https://jsfiddle.net/k1ssqq70/1/. It does appear to require all three images and the leading space precisely to reproduce though. It may be possible to detect this shortcut in Quill and preventDefault to circumvent.
Great thanks -- would you be willing to share the code for the keyboard shortcut handler? Also you mentioned there were other cases but this was the simplest. Did they all involve three images like this? It seems like a strange condition I wonder if the later images happen to always fulfill some other general case.
There's a wide variety of combinations that will cause this problem:
Those were the cases I want through in my testing.