requestIdleCallback sometimes hangs until the mouse moves again
Reported by
bzugme...@gmail.com,
Oct 9
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce the problem: * Add the attached JS file in a blank HTML page or go to http://jsfiddle.net/s7x8yu0e/. The script run requestIdleCallback every 500ms, and logs a message when the idle callback is called. * Open the console to verify that a message is logged every 500ms. * Focus the page with the mouse (= click the jsfiddle page frame), and move the mouse around. Stop moving the mouse. Repeat. What is the expected behavior? The message should be logged every 500ms (more or less). The "count" variable should stay at 0. What went wrong? Sometimes, when the mouse stops moving and pointer becomes still, the callback is not called until the pointer moves again. We can see the setInterval callback was still correctly called every 500ms because the "count" variable is incremented. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 69.0.3497.100 Channel: stable OS Version: ArchLinux Flash Version: This happens quite often on Linux. A colleague tried on macOS (laptop + trackpad, no mouse) and reproduced the issue almost everytime.
,
Oct 10
,
Oct 12
bzugmeyer@ Thanks for the issue. Able to reproduce this issue on Windows 10 and Mac OS 10.13.3 on the reported version 69.0.3497.100 and the latest Canary 71.0.3578.0 by following the steps given above. Will provide the bisect information soon. Hence adding the 'Needs-Bisect' label and marking this issue as Untriaged . Thanks..
,
Oct 15
//Adding to comment #3. Able to reproduce this issue on Windows 10, Ubuntu 17.10 and Mac OS 10.13.3 on the reported version 69.0.3497.100 and the latest Canary 71.0.3581.0, but the issue is inconsistent. Unable to provide the bisect information as both good and bad behaviors are observed on 69.0.3497.100. Attached are the screen shots for reference. Hence adding the appropriate labels and requesting Dev to look into the issue and help further. Thanks.. |
||||
►
Sign in to add a comment |
||||
Comment 1 by bzugme...@gmail.com
, Oct 9198 bytes
198 bytes View Download