Edge hangs and reloads a current page if selection is reset in the 'selectstart' event handler

Fixed Issue #15265047

Details

Author
DevExpress T.
Created
Dec 29, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
41.16299
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Description
Once the removeAllRanges() method is called in the ‘selectstart’ event handler, the current page is suddenly reopened and the Edge browser hangs for some time. Sometimes Edge fails to load the page.
 
Steps to reproduce:

  1. Open the attached test.html page in Edge or insert the following code in an HTML page:
<script>
document.addEventListener("selectstart", function() {
window.getSelection().removeAllRanges()
}, true);
</script>
  1. Double click any empty place on the page.
     
    Expected result: Nothing occurs
    Actual result: The page is reopened, Edge hangs for some time or fails to load the page.
     
    I have attached a video to illustrate the issue.

Attachments

2 attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “wprpprtri@microsoft.com”

    Changed Assigned To from “wprpprtri@microsoft.com” to “Sandhya S.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Sandhya S.” to “Nirankush P.”

    Changed Assigned To from “Nirankush P.” to “Grisha L.”

    Changed Status from “Confirmed”

    Changed Status to “Not reproducible”

    Changed Status from “Not reproducible” to “Fixed”

    Changed Assigned To to “James M.”

  • Changed Status from “Fixed”

  • Hi,

    We still can reproduce the issue in Edge 41.16299.248.0. Note: to reproduce the issue make several double clicks after the page is opened.
    See this video for details.

  • Microsoft Edge Team

    Changed Assigned To to “Grisha L.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Grisha L.” to “Anupam S.”

    Changed Status from “Confirmed” to “Fixed”

  • Hello,

    Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge and will be available in an upcoming insider build (RS5).

    Best Wishes,
    The MS Edge Team

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

Sign in