1 <div oncontextmenu="contextmenu(event)"> 2 Select some text in the contenteditable below and press the context menu key 3 (or shift+F10). The browser should not crash. 4 <div contenteditable id="a"> 5 <p>|content editable|</p> 6 </div> 7 After content editable. 8 </div> 9 <script> 10 function contextmenu(event) { 11 document.getElementById("a").style.visibility = "hidden"; 12 } 13 </script> 14