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

Issue 687003 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect opacity for window on ChromeOS

Project Member Reported by reve...@chromium.org, Jan 31 2017

Issue description

We've noticed this in the past but never been able to reproduce it. Now that the "Slow UI Animations" debug feature has landed it's much easier to reproduce.

In the wild this would typically result in the window being almost transparent (e.g. alpha=0.01) and that looks a bit like the screen is broken. When slowing down animations, it's much easier to get a window stuck at alpha=~0.5.

Seems like an animation is cancelled and opacity ends up wrong. The best way we've found to reproduce this is by enabling "Slow UI Animations" in about:flags and then try to close windows using the top-left close button at the same time as you hit Ctrl-N to open new windows.

Screenshot of the bad state attached.
 
translucent-window.png
701 KB View Download
Cc: abodenha@chromium.org
Components: UI>Shell>WindowManager
+abodenha and component to get it into triage list. Off the top of my head I don't know what would do this. Maybe a window close animation is getting stuck.

Owner: afakhry@chromium.org
Status: Assigned (was: Untriaged)
Per triage: please take a look. 

Comment 3 by sky@chromium.org, Jan 31 2017

I suspect James is right, that the window close animation isn't cleaning up correctly if aborted. Although I've no idea why the close animation would be aborted when a new window is created.

Comment 4 by osh...@chromium.org, Jan 31 2017

I guess creating new window may push another window left/right, which may abort animation?
Status: Started (was: Assigned)
Able to repo. I can repro by simply Ctrl+N and immediately click on the window's title bar. The opacity is stuck to its value at the time of the click.

Will start looking into why.
Screenshot 2017-01-31 at 4.10.27 PM.png
1.6 MB View Download

Comment 6 by sky@chromium.org, Feb 1 2017

I would start with HidingWindowAnimationObserverBase. No doubt we're not handling the animation being aborted correctly.
@reveman, can you please tell me how exactly I can repro the behavior you mentioned in the bug description? I can only repro the case I mentioned in #5. For that case, the suggested fix is: https://codereview.chromium.org/2666413002

We used to apply the initial opacity rather than the initial target opacity.

However, I'm not sure that this is the same issue you described.
That might be enough to fix my issue. I'm not sure exactly where I clicked. I'll test your patch asap to see if I can still reproduce the problem.
Yes, please let me know. I will send the CL for review since we need that fix anyway.
Project Member

Comment 10 by bugdroid1@chromium.org, Feb 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/1b08650cd63cbd6fa11cc5a840d716a3b945306b

commit 1b08650cd63cbd6fa11cc5a840d716a3b945306b
Author: afakhry <afakhry@chromium.org>
Date: Mon Feb 06 19:36:26 2017

Fix opacity getting stuck when clicking on a new window while it's being created

While the window is being created, it's going through an opacity animation. Clicking
on the window's title bar at this point, starts a drag. We must store the target
opacity (rather than the current one) to be able to set it on drag completion, otherwise
the window opacity will be stuck to its value at the time of the click.

BUG= 687003 

Review-Url: https://codereview.chromium.org/2666413002
Cr-Commit-Position: refs/heads/master@{#448352}

[modify] https://crrev.com/1b08650cd63cbd6fa11cc5a840d716a3b945306b/ash/common/wm/drag_details.cc

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Chrome OS 9532.0.0, 60.0.3092.0

Sign in to add a comment