Pageviews

Wednesday, 18 January 2017

Mozilla Crashes at Inner Loop.

Lets get it done ....

Steps to Reproduce :

1. Open this link in Mozilla
2. Wait for a while, Mozilla will stop Not-Responding.

This happens because of the code given below :

 "  document.designMode="on";
  for(var i=0;i<100000;i++){
    document.execCommand("selectall");
    document.execCommand("bold",false,null);
    document.execCommand("insertHtml",false,"A");
  }"

Looks like that "selectall" registers runnable events for "selectionchange" but the selection has been already changed "insertHTML" and/or others when the runnable events try to dispatch selectionchange events , then tab becomes unresponsive.

Bug Reported by : Dhiraj Mishra 

No comments:

Post a Comment