Right click crashes after creating "MouseEvents"

Fixed Issue #8173097

Details

Author
Dmitry D.
Created
Jul 14, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
13.10586
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

1. Insert this JS code on the page:

<script>

        var b = document.querySelector("body");
        b.addEventListener('mouseup', function() {
            
            a = document.createElement("a");
            a.href = "http://google.com";

            e = document.createEvent("MouseEvents");
            e.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, true, false, false, false, 1, null);
            a.dispatchEvent(e);

        })

</script>

2. Click with right mouse button on the <body> - new page will be opened.
3. Turn back to the previous page and try to right click again - the click doesn’t work untill you reopen the tab.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Status to “Fixed”

    • Hello and thank you for the feedback on MS Edge. When I test this in 14901.1000 (an older insider fast branch) - this does not repro any longer. As such, we will close out the item as not repro.

      Should you still see this as an active problem - feel free to let us know and reactivate the item.

      All the best,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in