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

Issue 403933002: Set SSL info when an HTTP auth dialog is triggered by direct navigation. (Closed)

Created:
6 years, 5 months ago by meacer
Modified:
4 years, 8 months ago
Reviewers:
palmer, Charlie Reis, nasko
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set SSL info when an HTTP auth dialog is triggered by direct navigation. This patch correctly sets the SSL information of a navigation entry when an HTTP auth dialog is triggered. It only sets the information if the navigation is initiated by the user (i.e. through the omnibox). It does not set SSL information if the navigation ending up with the HTTP auth dialog was triggered by a page redirect, as there is no SiteInstance to get the SSL information from in that case. BUG=395050

Patch Set 1 #

Patch Set 2 : Set SSL status for all HTTP basic auth prompts #

Total comments: 4

Patch Set 3 : Set SSL status in ResourceLoader #

Total comments: 16

Patch Set 4 : Nasko comments #

Total comments: 6

Patch Set 5 : Charlie comments #

Patch Set 6 : Rebase #

Total comments: 3

Patch Set 7 : Just use pending navigation entry for everything #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -86 lines) Patch
M chrome/browser/ui/login/login_interstitial_delegate.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/login/login_interstitial_delegate.cc View 1 2 3 4 5 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/login/login_prompt.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/login/login_prompt.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 2 comments Download
M chrome/browser/ui/login/login_prompt_browsertest.cc View 1 2 3 4 5 6 7 chunks +191 lines, -3 lines 0 comments Download
M chrome/test/data/login/cross_origin.html View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/resource_loader.h View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 chunks +61 lines, -44 lines 3 comments Download
M content/browser/ssl/ssl_manager.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 4 5 6 3 chunks +52 lines, -26 lines 4 comments Download

Messages

Total messages: 29 (3 generated)
meacer
Charlie/Nasko, can you please take a look? Thanks.
6 years, 5 months ago (2014-07-22 21:42:53 UTC) #1
Charlie Reis
I'm not a great reviewer for the SSL state/UI calls, but I agree that we ...
6 years, 5 months ago (2014-07-22 22:01:21 UTC) #2
meacer
Thanks Charlie. Adding Chris for thoughts on SSL related bits. https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc File chrome/browser/ui/login/login_interstitial_delegate.cc (right): https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc#newcode17 ...
6 years, 5 months ago (2014-07-22 22:07:10 UTC) #3
Charlie Reis
https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc File chrome/browser/ui/login/login_interstitial_delegate.cc (right): https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc#newcode58 chrome/browser/ui/login/login_interstitial_delegate.cc:58: // LoginHandler::UpdateSSLState doesn't set the mixed content state, but ...
6 years, 5 months ago (2014-07-22 23:23:18 UTC) #4
meacer
On 2014/07/22 23:23:18, Charlie Reis wrote: > https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc > File chrome/browser/ui/login/login_interstitial_delegate.cc (right): > > https://codereview.chromium.org/403933002/diff/20001/chrome/browser/ui/login/login_interstitial_delegate.cc#newcode58 ...
6 years, 5 months ago (2014-07-22 23:27:55 UTC) #5
jam
i'm overloaded with reviews and CY, so please pick another owner from chrome
6 years, 5 months ago (2014-07-23 17:19:13 UTC) #6
meacer
Thanks jam, I'll remove you from the reviewers. Charlie/Nasko/Chris: The latest patchset updates the SSL ...
6 years, 5 months ago (2014-07-24 00:05:02 UTC) #7
nasko
This iteration seems much more intuitive and cleaner. Some comments posted. https://codereview.chromium.org/403933002/diff/40001/chrome/browser/ui/login/login_prompt_browsertest.cc File chrome/browser/ui/login/login_prompt_browsertest.cc (right): ...
6 years, 5 months ago (2014-07-24 09:32:34 UTC) #8
meacer
Thanks Nasko. https://codereview.chromium.org/403933002/diff/40001/chrome/browser/ui/login/login_prompt_browsertest.cc File chrome/browser/ui/login/login_prompt_browsertest.cc (right): https://codereview.chromium.org/403933002/diff/40001/chrome/browser/ui/login/login_prompt_browsertest.cc#newcode1334 chrome/browser/ui/login/login_prompt_browsertest.cc:1334: EXPECT_EQ("www.a.com", contents->GetURL().host()); On 2014/07/24 09:32:34, nasko (in ...
6 years, 5 months ago (2014-07-24 17:32:33 UTC) #9
Charlie Reis
Cool, this seems to work well. Few nits below. https://codereview.chromium.org/403933002/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/403933002/diff/60001/content/browser/loader/resource_loader.cc#newcode290 content/browser/loader/resource_loader.cc:290: ...
6 years, 5 months ago (2014-07-24 18:39:33 UTC) #10
meacer
Thanks Charlie. https://codereview.chromium.org/403933002/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/403933002/diff/60001/content/browser/loader/resource_loader.cc#newcode290 content/browser/loader/resource_loader.cc:290: NOTREACHED(); On 2014/07/24 18:39:32, Charlie Reis wrote: ...
6 years, 5 months ago (2014-07-24 18:48:32 UTC) #11
Charlie Reis
content/ LGTM
6 years, 5 months ago (2014-07-24 18:50:52 UTC) #12
palmer
LGTM. Nice! I am using ssh -X to display ToT + this patch running on ...
6 years, 5 months ago (2014-07-24 19:55:37 UTC) #13
palmer
> I am using ssh -X to display ToT + this patch running on my ...
6 years, 5 months ago (2014-07-24 19:56:43 UTC) #14
palmer
> Ahh. When I closed the HTTP Auth dialog, the Certificate Viewer dialog finally > ...
6 years, 5 months ago (2014-07-24 19:58:28 UTC) #15
meacer
On 2014/07/24 19:58:28, Chromium Palmer wrote: > > Ahh. When I closed the HTTP Auth ...
6 years, 5 months ago (2014-07-25 01:19:47 UTC) #16
Charlie Reis
On 2014/07/25 01:19:47, Mustafa Emre Acer wrote: > On 2014/07/24 19:58:28, Chromium Palmer wrote: > ...
6 years, 5 months ago (2014-07-25 20:32:42 UTC) #17
palmer
Ping! Any progress on this old CL?
6 years, 2 months ago (2014-10-16 17:27:08 UTC) #18
meacer
On 2014/10/16 17:27:08, Chromium Palmer wrote: > Ping! Any progress on this old CL? Unfortunately ...
6 years, 2 months ago (2014-10-16 17:31:26 UTC) #19
meacer
Back to this after 7 months :) I finally fixed the issue with renderer-initiated navigations ...
5 years, 9 months ago (2015-03-12 20:37:48 UTC) #23
Charlie Reis
Sorry for the delay-- things are crazy this week. I've only looked at the place ...
5 years, 9 months ago (2015-03-13 18:19:37 UTC) #24
meacer
https://codereview.chromium.org/403933002/diff/160001/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): https://codereview.chromium.org/403933002/diff/160001/chrome/browser/ui/login/login_prompt.cc#newcode571 chrome/browser/ui/login/login_prompt.cc:571: : pending_entry; On 2015/03/13 18:19:37, Charlie Reis wrote: > ...
5 years, 9 months ago (2015-03-17 17:30:44 UTC) #25
Charlie Reis
Hmm, there's still some landmines here. It may make sense to discuss this in person ...
5 years, 9 months ago (2015-03-18 17:46:38 UTC) #26
palmer
https://codereview.chromium.org/403933002/diff/180001/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): https://codereview.chromium.org/403933002/diff/180001/chrome/browser/ui/login/login_prompt.cc#newcode562 chrome/browser/ui/login/login_prompt.cc:562: content::NavigationEntry* pending_entry = I'm following up with this at ...
5 years, 2 months ago (2015-09-29 00:03:33 UTC) #27
palmer
Can we close this old CL? I'm trying to clean out my to-review list. Thanks!
4 years, 8 months ago (2016-04-04 20:18:48 UTC) #28
meacer
4 years, 8 months ago (2016-04-04 21:10:40 UTC) #29
On 2016/04/04 20:18:48, palmer wrote:
> Can we close this old CL? I'm trying to clean out my to-review list. Thanks!

I'll close this. palmer: Note that you took over this CL as
https://codereview.chromium.org/1368863002/

Powered by Google App Engine
This is Rietveld 408576698