New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 752901 link

Starred by 4 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

chrome.idle fires an active state at the lock screen in Windows 10

Reported by breitb...@gmail.com, Aug 7 2017

Issue description

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

Steps to reproduce the problem:
1. Lock the screen in Windows 10 
2. Stay in the actual 'lock screen' and don't change to the 'login screen' (where you are able to change users and enter the password)

What is the expected behavior?
chrome.idle should fire the 'locked' state.

What went wrong?
chrome.idle does fire the 'locked' state but it also fires immediately an 'active' event. This error doesn't occur everytime you lock the screen but at least every second time.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 60.0.3112.90  Channel: stable
OS Version: 10.0
Flash Version: 

You can use the attached minimal extension which logs the events in the console of the background page. In the error case, you will see something like this in the logs, when you lock the screen:

locked at 10:00:12 // User locked the screen
active at 10:00:13 // Chrome fires immediately the active event
locked at 10:00:42 // User switched to the login screen of Windows 10
active at 10:00:50 // User logged in successfully

It should be:

locked at 10:00:12 // User locked the screen
active at 10:00:50 // User logged in successfully

One additional hint: 

If I disable the lock screen, Windows will show the login screen right away and everything works as expected. So I suppose it is related to the 'new' lock screen.
 
idle-example.zip
722 bytes Download
Cc: brajkumar@chromium.org
Labels: Needs-Triage-M60 Needs-Feedback
Tested this issue on Windows-10 using chrome latest stable #60.0.3112.90 and latest canary #62.0.3179.0 by following steps mentioned in the original comment.

1. 62.0.3179.0 (Stable) behavior:
----------------------------------
locked at 01:03:22 PM
active at 01:03:23 PM
locked at 01:03:26 PM
active at 01:03:30 PM

2. 62.0.3179.0 (Canary) behavior:
----------------------------------
locked at 01:03:22 PM
active at 01:03:23 PM

Reporter@ Could you please confirm and let us know is the canary behavior is the expected behavior for this issue? If yes, please recheck this issue on chrome latest canary and kindly update the latest behavior of the bug.

Thanks!
Thanks, for your fast response.

I have just recheked it with canary #62.0.3179.0 and the same problem exists.

As I mentioned in my report, sometimes the events are fired correctly (like your canary log). But other times not. At my test machines the error occurs approximately every second time I lock the screen.
Project Member

Comment 3 by sheriffbot@chromium.org, Aug 8 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Do you have any updates on this?

With the current Canary #63.0.3231.0 I see a slightly different behavior:

1. The user locks the screen -> nothing at all is fired
2. The user switches to the login screen -> the "locked" event is fired

The "locked" event should have been fired right away at step 1.

I can confirm the unexpected behaviour.

However, I think it doesn’t changed in Canary #63.0.3231.0. The statement "This error doesn't occur everytime" from your first post is a bit ambiguous, because chrome doesn’t fire correctly in any case. Sometimes chrome fires two events in the same behaviour of your last post, sometimes there are four events. To put it plainly, I see:

locked at 10:00:42 // User switched to the login screen of Windows 10
active at 10:00:50 // User logged in successfully

but sometimes:

locked at 10:00:12 // User locked the screen
active at 10:00:13 // Chrome fires immediately the active event
locked at 10:00:42 // User switched to the login screen of Windows 10
active at 10:00:50 // User logged in successfully

Both cases do not match (my) expected behaviour!

(I added a beep to your minimal example to hear, when chrome fires an event)
idle-example.zip
3.4 KB Download

Comment 6 by egorik...@gmail.com, Oct 26 2017

Is there any progress about it?
Cc: kkaluri@chromium.org
Components: Platform>Extensions
Labels: TE-NeedsTriageHelp
This issue is not consistently reproducible on windows 10 with chrome #62.0.3202.89, hence adding TE-NeedsTriagehelp for further triage from Extensions dev team

Comment 8 by breitb...@gmail.com, Apr 25 2018

I can still reproduce this issue with latest stable (66.0.3359.117) and latest canary (68.0.3405.0).

If the user locks the screen in Windows 10, there is either no event at all or the 'locked' event is immediately followed by an 'active' event. Both cases are wrong.

Sign in to add a comment