Script initiated message box cannot take the focus during ondrop event, causing hang.

Fixed, not yet flighted Issue #6274723


Jan 22, 2016
This issue is public.
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:


The following page illustrates the problem, when the w3schools logo is dragged into the box (the code is from w3schools and not my property):





#div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;}



function allowDrop(ev) {



function drag(ev) {



function drop(ev) {


alert(“This alert shows but clicking ‘OK’ won’t do anything…”);

var data = ev.dataTransfer.getData(“text”);;





<p>Drag the W3Schools image into the rectangle:</p>

<div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"></div>


<img id="drag1" src="" draggable="true" ondragstart="drag(event)" width="336" height="69">



Expected Results:


A clickable ‘OK’ but that makes the alert go away.

Actual Results:


Dev Channel specific:







brlong 3/29/16


Pasted repro to [\iefs\users\brlong\test\HangOnAlertInDropHandler_Bug6274723.html](file://\iefs\users\brlong\test\HangOnAlertInDropHandler_Bug6274723.html)


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Sermet I.”

      Changed Assigned To from “Sermet I.” to “Bruce L.”

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Status from “Confirmed” to “In progress”

      Changed Title from “Microsoft Edge crashes on alert in ondrop event” to “Script initiated message box cannot take the focus during ondrop event, causing hang.”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Bruce L.” to “IE S.”

      Changed Status from “In progress” to “Fixed, not yet flighted”

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

    Sign in