setInterval and requestAnimationFrame stop firing when another Chrome window is being dragged
Reported by
wen...@openfin.co,
Jan 10 2017
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Steps to reproduce the problem:
1. Open a new browser window running the following code:
<div id='id1' style="width: 100px;height: 100px"></div>
<script type="text/javascript">
var myDiv = document.getElementById('id1');
var num = 1;
setInterval(function(){
myDiv.innerHTML = " " + num++;
}, 1);
</script>
2. Drag another window
What is the expected behavior?
The counter in ID1 should keep updating
What went wrong?
The counter stops being updated for few seconds, or for the entire duration of the drag.
Did this work before? N/A
Chrome version: 55.0.2883.87 Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 24.0 r0
I am able to reproduce the issue on Windows7, as well as older version of Chromium, such as 49.
requestAnimationFrame has the same behavior.
,
Jan 11 2017
Hello Attached is the html file I am using to reproduce the issue. It may take few minutes to reproduce the case of freezing during entire duration of dragging (from mouse press to mouse release). It is much easier to make the short freezes (2-3 seconds) happen. Thank you for the help Wenjun
,
Jan 13 2017
,
Jan 16 2017
Looks like the timer keeps running, but it's just the display that doesn't update (notice the counter jumping from 25k to 30k when the mouse is released in the video). Brian/Sunny, could this be related to display scheduling somehow?
,
Jan 18 2017
,
Jan 31 2017
ericrk, this sounds a lot related to some of the resize work you've done. Do we run a nested message loop when dragging a window? Is there anything to be done here?
,
Jan 31 2017
That code hasn't landed, so it's not related to the resize/gutter work. I'm actually having trouble repro-ing this. skyostil@, when you were able to repro, was that on a win7 machine as well (I'm trying Win10, wondering if it's specific to a win version).
,
Mar 22 2017
=> skyostil as this is waiting on feedback
,
Mar 22 2017
(For the record I actually wasn't able to repro -- IIRC we were just watching the posted video.) |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by kkaluri@chromium.org
, Jan 11 2017Labels: Needs-Feedback