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

Fixed, not yet flighted Issue #6274723

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL:

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

<!DOCTYPE HTML>

<html>

<head>

<style>

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

</style>

<script>

function allowDrop(ev) {

ev.preventDefault();

}

function drag(ev) {

ev.dataTransfer.setData("text", ev.target.id);

}

function drop(ev) {

ev.preventDefault();

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

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

ev.target.appendChild(document.getElementById(data));

}

</script>

</head>

<body>

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

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

<br>

<img id="drag1" src="http://www.w3schools.com/html/img_w3slogo.gif" draggable="true" ondragstart="drag(event)" width="336" height="69">

</body>

</html>

Expected Results:

==============

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

Actual Results:

==============

Dev Channel specific:

================

No

 

 

 

=====================

brlong 3/29/16

 

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

Attachments

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