New issue
Advanced search Search tips

Issue 859470 link

Starred by 1 user

Issue metadata

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


Participants' hotlists:
LoginRefresh


Sign in to add a comment

Chromad: Escape-based cancel is broken for the views login UI

Project Member Reported by rsorokin@chromium.org, Jul 2

Issue description

Chrome Version: 69.0.3480
OS: Chrome OS

What steps will reproduce the problem?
(1) Open Active Directory login authentication on the views login

There is a 'cancel' function on the signin screen (https://cs.chromium.org/chromium/src/chrome/browser/resources/chromeos/login/screen_gaia_signin.js?rcl=6522401b94e6a2107b10495204fb7182e127f62e&l=1208)

There are two issues
1. X-button (see screenshot) call the 'cancel' but does not close the window, just reloads it.
2. Esc button closes the window but does not call the 'cancel' function

There is no such problem with Gaia signin.

Jacob, any thoughts? I have not investigated much, I guess there is no propagation of cancellation between views login and AD screen?


 
Mergedinto: 859130
Status: Duplicate (was: Available)
I have a CL in review to fix, thanks for reporting.
Thanks! The 1st issue got fixed. But the 2nd is still there.
Which part of the cancel function do you need to have called? Escape is currently handled on the c++ side.
Status: Assigned (was: Duplicate)
Summary: Chromad: Escape-based cancel is broken for the views login UI (was: Chromad: Cancel is broken for the views login UI)
Thanks, I'll take a look at fixing.
Status: Started (was: Assigned)
https://chromium-review.googlesource.com/c/chromium/src/+/1123307 will make escape go through the same code path as hitting the back button.

From my understanding the login architecture, gaia_screen_handler (all the *_handler) classes are meant to be specific to webui, and some other type which interacts with gaia_view should be the one implementing active-directory logic. That cleanup can happen another time, though.
Project Member

Comment 9 by bugdroid1@chromium.org, Jul 6

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

commit 22a807b9f90d639d1c036f3c68ae5845cdbab51f
Author: Jacob Dufault <jdufault@google.com>
Date: Fri Jul 06 21:01:24 2018

cros: Forward escape accelerator to oobe dialog in views login.

There is some active directory logic in GaiaScreenHandler that should run
whenever gaia is cancelled. This is the easiest way to run that logic. Long-term
the active directory logic should be refactored outside of GaiaScreenHandler,
since GaiaScreenHandler should only contain webui-specific code, and the active
directory code is UI agnostic.

Bug:  859470 
Change-Id: Ibd203b1ec5da07a721a749a569e6f4cb848b7025
Reviewed-on: https://chromium-review.googlesource.com/1123307
Reviewed-by: Alexander Alekseev <alemate@chromium.org>
Commit-Queue: Jacob Dufault <jdufault@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573069}
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/fake_login_display_host.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/fake_login_display_host.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_common.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_common.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_mojo.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_mojo.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_webui.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/login_display_host_webui.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/mock_login_display_host.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/oobe_ui_dialog_delegate.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/chromeos/login/ui/oobe_ui_dialog_delegate.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h
[modify] https://crrev.com/22a807b9f90d639d1c036f3c68ae5845cdbab51f/ui/login/display_manager.js

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
I was able to reproduce this using 10836.0.0, 69.0.3479.0 and verify using 10872.0.0, 69.0.3488.0 (Santa). X-button and ESC button now close the Sign-in window.

Sign in to add a comment