New issue
Advanced search Search tips

Issue 648206 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 639150
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

alert, prompt, confirm do not cause DOM repaint

Reported by dmitry.k...@gmail.com, Sep 19 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Steps to reproduce the problem:
1. Open attached file (test.html) with Chrome 53:
<body onload="domReset()">
	<div id="content">old dom content, that is reset before alert</div>
<script>
	function domReset(){
		setTimeout(function(){
document.getElementById("content").innerHTML = "If you read it before alert, everything works ok";
			alert("If you see old dom under alert box, there is a bug!");
		}, 0);
	}
</script>
</body>

2. You see alert box and "old dom content, that is reset before alert" under it

What is the expected behavior?
You should see "If you read it before alert, everything works ok"

What went wrong?
Chrome does not repaint DOM before showing alert, prompt or confirm boxes. It leads to user misunderstanding, because it may refer to some unpainted changes in DOM.

Other browsers (Edge, Firefox, Chrome 51-) behave well.

Did this work before? Yes Chrome 51-

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 
test.html
362 bytes View Download
Screen Shot 2016-09-19 at 8.08.51 PM.png
110 KB View Download
The previous screenshot does not show any DOM at all. It is also buggy behaviour. Here is my screenshot that shows initial dom but not the updated one

QIP Shot - Screen 006.png
17.6 KB View Download

Comment 3 by f...@opera.com, Sep 19 2016

Mergedinto: 639150
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment