This Combo Freezes the Browser
Closed this issue · 4 comments
chriscoyier commented
- Put
<div>1</div>
in the HTML - Select characters
>1</div
with cursor - Hit Backspace
- The page stops responding and finally crashes with error "Out of Memory"
Can reproduce at http://download.emmet.io/codemirror/index.html
sergeche commented
Can’t reproduce, even on CodePen. Maybe there’s a specific syntax you’re using?
chriscoyier commented
Here's a video of those steps exactly:
https://d.pr/v/xC4cwB
Chrome 89 on macOS.
The freeze lasts for 20 seconds or so, then you can see the browser give up and Aw Snap!
sergeche commented
Fixed in v.1.2.4.
FYI, the problem was in Auto Rename Tag feature which automatically renames tag when you modify either open or closing part. In your example, closed tag range became empty and in invalid location so it caused infinite document grow with new div
fragment
chriscoyier commented
Thank you!