cros: Temporary fix to show ProxyBasicAuth prompt on views-login.
When the basic auth widget appears, it is fetching the parent widget using WebContentsModalDialogHost::GetHostView. CaptivePortalDialogDelegate overrides this to return the captive portal widget, which is hidden. Thus, the auth widget is also hidden because its parent widget is hidden. I believe the correct long-term fix is to not share a WebContents instance bewteen OoobeUIDialogDelegate and CaptivePortalDialogDelegate. However, that seems like a much riskier change. Add a hacky check to return the widget for OoobeUIDialogDelegate if the CaptivePortalDialogDelegate widget is currently hidden. Bug: 890976 Change-Id: I0d974449d7eb425a8bb99dcc8d34eb6582c097e7 Reviewed-on: https://chromium-review.googlesource.com/c/1263040Reviewed-by:Quan Nguyen <qnnguyen@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Jacob Dufault <jdufault@chromium.org> Cr-Commit-Position: refs/heads/master@{#596865}
Showing
Please register or sign in to comment