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

Issue 649354 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner:
Closed: Nov 23
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug
M-X

Blocking:
issue 671916


Participants' hotlists:
MacViews-Task-Queue


Sign in to add a comment

Flash of white seen when closing MacViews task manager window

Project Member Reported by rsesek@chromium.org, Sep 22 2016

Issue description

Version: 55.0.2868.0
OS: macOS 10.11.6

What steps will reproduce the problem?
(1) --enable-features=MacViewsNativeDialogs,MacViewsWebUIDialogs
(2) Open the task manager
(3) Close the task manager window
(4) See white flash when closing the window

What is the expected output?
No flash of white when closing the window.

What do you see instead?
A flash of white when the window is being closed. Seems related to  issue 623950 .


Please use labels and text to provide additional information.

 
Screen Shot 2016-09-22 at 11.03.30 AM.png
53.4 KB View Download
flash-close.mov
395 KB Download
Owner: karandeepb@chromium.org
Status: Assigned (was: Untriaged)
Thanks for catching this rsesek@. I missed that  http://crbug.com/623590  also mentioned closing the task manager. 
Like the  issue 645343  which https://codereview.chromium.org/2312133002/ fixed, there's also a corresponding black strip displayed for a MacViewsBrowser when it's closed, which has the same root cause as this issue. Further, when widgets are closed using Widget::CloseNow, we don't orderOut, and that also causes the window to not close "gracefully". Will post screenshots. 

Think this happens since we destroy the compositor during [window close].

Some initial thoughts regarding ways to solve this-

1) Simply doing a [window_ orderOut] in BridgedNativeWidget::OnWindowWillClose should fix this.

2) Another thought -> What if we override NativeWidgetMacNSWindow's close method, and use a windowDidClose method so that we destroy the BNW and the NWM "after" [window_ close]. Knowing that the window has already been closed may also help in simplifying out teardown paths for BNW. It'll also keep everything "alive" during [window_ close].

Haven't looked into how aura widgets and RWHVM handle these things.

Comment 3 by tapted@chromium.org, Dec 12 2016

Blocking: 671916
Status: Available (was: Assigned)
Before I unassign myself, IIRC option no. 1 in c#2 wasn't correct, since orderOut can be async. We probably need to retain the compositor during [window close] like it's done in the renderer. See the comments in https://codereview.chromium.org/2454283002/.
Owner: ----
Cc: sdy@chromium.org
Making the contentView layer-backed seemed to have some effect on this when I played around. See sdy's https://codereview.chromium.org/2622083007/

Note there also seemed to be a difference whether Cmd+w was used to close the window versus the close button.
Labels: -Pri-2 MacViews-Dialogs Pri-3

Comment 8 by shrike@chromium.org, Oct 12 2017

Cc: ellyjo...@chromium.org shrike@chromium.org
Seems like this can be moved out of macViews Harmony and into the macViewsBrowser phase (it shows in the list of bug using the macViews Harmony link you gave me)?
Labels: -MacViews-Dialogs MacViews-Browser
Yep, that is correct. Moved.
Labels: -Pri-3 Target-69 Pri-2
Owner: sdy@chromium.org
Status: Assigned (was: Available)
sdy@, can you take a look at this for M-69?
Please note that the MacViews Task Manager needs a *lot* of work to not feel like an ugly, janky, hacky thing that should never be found running on a Mac (I could probably file as many bugs on this bit of UI as I've already filed on the MacView top chrome).

I don't think there's any urgency in converting the Task Manager to Views (I actually don't think there's any reason to convert it). I hope that the Task Manager doesn't get mixed into the rush to ship MacViews browser.
Labels: M-69
Labels: -Pri-2 -M-69 -Target-69 M-X Pri-3
Labels: Group-Painting_Rendering_Compositing
Labels: Hotlist-DesktopUIChecked
Status: WontFix (was: Assigned)
**Mass UI Triage**

We were unable to reproduce this bug on the latest canary 72.0.3618.0 on Mac OS 10.13.6. If this bug still reproduces for you, 
please reopen or file a new issue. Thanks!

Sign in to add a comment