Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 1207313003: Allow cert-popup for WebView guests. (Closed)

Created:
5 years, 5 months ago by wjmaclean
Modified:
5 years, 5 months ago
Reviewers:
Ryan Sleevi, davidben
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow cert-popup for WebView guests. The SSL cert-selection dialog is currently being suppressed for requests originating within a WebView guest. This appears to be on account of 1) ShowSSLClientCertificateSelector() not checking to see if the current WebContents is actually a guest without a WebContentsModalDialogManager, in which case it should attempt to use the embedder's WebContentsModalDialogManager, and possibly also 2) The embedder WebContents in the inline login view will not have a WebContentsModalDialogManager since it is created via a views::WebView. This CL remedies this by applying the correct check for the existence of an embedder WebContentsModalDialogManager, as well as making sure the inline flow provides a WebContentsModalDialogManager for the embedder WebContents. Note: applications that want the ability to show the certificate selector dialog,but are not hosted in a browser tab, have the option to provide a WebContentsModalDialogManager for the embedder's WebContents. BUG=499996

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated to use WebContentsModalDialogManager. #

Total comments: 4

Patch Set 3 : Add WebContentsModalDialogDelegate support to ProfileChooserView. #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -10 lines) Patch
M chrome/browser/ui/views/certificate_selector.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/certificate_selector.cc View 1 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 4 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/constrained_window/constrained_window_views.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/constrained_window/constrained_window_views.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (3 generated)
wjmaclean
Here's a first draft of a CL to get WebView guests to show the SSL ...
5 years, 5 months ago (2015-07-06 20:06:43 UTC) #2
Ryan Sleevi
I don't know if I'm good to offer high or low-level review :) I'd suggest ...
5 years, 5 months ago (2015-07-07 12:27:19 UTC) #4
wjmaclean
On 2015/07/07 12:27:19, Ryan Sleevi (slow through 7-15 wrote: > I don't know if I'm ...
5 years, 5 months ago (2015-07-07 12:46:57 UTC) #5
wjmaclean
My first CL got tripped up on the switch to WebContentsModalDialogManager ... I've uploaded a ...
5 years, 5 months ago (2015-07-07 14:45:55 UTC) #7
davidben
> Note: in future applications similar to the inline flow, > i.e. not hosted in ...
5 years, 5 months ago (2015-07-07 16:40:22 UTC) #8
davidben
https://codereview.chromium.org/1207313003/diff/40001/chrome/browser/ui/views/certificate_selector.h File chrome/browser/ui/views/certificate_selector.h (right): https://codereview.chromium.org/1207313003/diff/40001/chrome/browser/ui/views/certificate_selector.h#newcode38 chrome/browser/ui/views/certificate_selector.h:38: static bool CanShow(content::WebContents* web_contents); Mind adding a TODO, so ...
5 years, 5 months ago (2015-07-07 16:41:23 UTC) #9
wjmaclean
I've addressed your comments ... let me know if I got the right gist in ...
5 years, 5 months ago (2015-07-07 17:17:43 UTC) #10
wjmaclean
On 2015/07/07 17:17:43, wjmaclean wrote: > > *But* it looks kind of weird when the ...
5 years, 5 months ago (2015-07-07 17:50:37 UTC) #11
davidben
On 2015/07/07 17:50:37, wjmaclean wrote: > On 2015/07/07 17:17:43, wjmaclean wrote: > > > > ...
5 years, 5 months ago (2015-07-07 18:23:34 UTC) #12
wjmaclean
On 2015/07/07 18:23:34, David Benjamin wrote: > On 2015/07/07 17:50:37, wjmaclean wrote: > > On ...
5 years, 5 months ago (2015-07-07 18:38:39 UTC) #13
wjmaclean
davidben@ - Just to move this work along, would you be supportive of my splitting ...
5 years, 5 months ago (2015-07-09 15:08:52 UTC) #14
davidben
On 2015/07/07 18:38:39, wjmaclean wrote: > On 2015/07/07 18:23:34, David Benjamin wrote: > > On ...
5 years, 5 months ago (2015-07-13 19:34:28 UTC) #15
wjmaclean
On 2015/07/13 19:34:28, David Benjamin wrote: > On 2015/07/07 18:38:39, wjmaclean wrote: > > On ...
5 years, 5 months ago (2015-07-13 20:20:01 UTC) #16
wjmaclean
5 years, 5 months ago (2015-07-14 18:27:29 UTC) #17
Message was sent while issue was closed.
I closed this in favour of https://codereview.chromium.org/1234073002/

Powered by Google App Engine
This is Rietveld 408576698