New issue
Advanced search Search tips

Issue 760349 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Widget::InitParams::mus_properties does not work for setting parent using NativeWidgetAura

Project Member Reported by jdufault@chromium.org, Aug 29 2017

Issue description

The DCHECK in NativeWidgetAura[1] will trigger if showing the views-based lock screen in mash (--show-md-login --mash). The Widget and Widget::InitParams values are initialized in LockWindow[2]. Views-based lock screen initialization happens in the ash process, whereas the webui lock screen is initialized from the chrome process (and thus webui lock uses through DesktopNativeWidgetAura).

NativeWidgetAura should understand Widget::InitParams::mus_properties so that calling code can be more uniform in how it passes initialization state.

1: https://cs.chromium.org/chromium/src/ui/views/widget/native_widget_aura.cc?l=152
2: https://cs.chromium.org/chromium/src/ash/login/ui/lock_window.cc?l=17

Owner to sky@ for triage.
 
Components: Internals>MUS UI>Shell
Labels: Proj-Mustash-Aura
Regardless of how we resolve this bug, we might want to get rid of this DCHECK:

void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
  // Aura needs to know which desktop (Ash or regular) will manage this widget.
  // See Widget::InitParams::context for details.
  DCHECK(params.parent || params.context);

That dates back to the Win 8 Metro Ash implementation, where it was vital to know which Windows desktop to use for a new window. These days we can just put the window on the ash::Shell::GetRootWindowForNewWindows().
Components: -UI>Shell Internals>Views
Removing UI>Shell as triage process. (see go/cros-ui-triage-process)
Components: -Internals>MUS Internals>Services>WindowService
Components: Internals>Aura
Labels: -Proj-Mustash-Aura Proj-Mustash
Migrating from Proj-Mustash-Aura to components Internals>Aura
Status: Assigned (was: Untriaged)
This bug has an owner, thus, it's been triaged. Changing status to "assigned".
Labels: -Proj-Mustash Proj-Mash
Owner: jamescook@chromium.org
I don't believe the original issue is relevant anymore as ash now always uses NativeWidgetAura. However, James's comment #2 has been talked about quite a bit. I'm kicking this over to James to decide if there is anything to do here.
I don't think this is relevant any more.

I think we still need the DCHECK, as we've talked about the importance of plumbing around some kind of context so we know which aura::Env* to use when creating aura::Windows.

jdufault, we don't use webui lock screen anymore, right? I thought we switched to views lock screen a long time ago. I still see the code for webui lock in the codebase, so I'm not sure.

Right, views lock has been used for many milestones now and we no longer maintain the webui one. We're planning on cleaning up the webui lock and webui login code at the same time since they are highly interdependent.
Status: WontFix (was: Assigned)
Great, sounds like this is obsolete then.

Sign in to add a comment