Right click crashes after creating "MouseEvents"

Fixed Issue #8173097


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

Sign in to watch or report this issue.

Steps to reproduce

1. Insert this JS code on the page:


        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);



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.


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