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

Issue 2109633002: Executed HTTPS upgrade before notifying the start of the provisional load. (Closed)

Created:
4 years, 5 months ago by carlosk
Modified:
4 years, 5 months ago
Reviewers:
clamy, Mike West, nasko
CC:
blink-reviews, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, jam, Nate Chapin, loading-reviews+fetch_chromium.org, loading-reviews_chromium.org, nasko+codewatch_chromium.org, nasko, tyoshino+watch_chromium.org, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Executed HTTPS upgrade before notifying the start of the provisional load. This makes so that the fetch URL sent to the browser process for navigations with the start provisional load notification is already the final, potentially HTTPS upgraded one. This caused some problems with upcoming changes where the URL stored in the NavigationHandle differed from the actual URL being navigated to. A new test is also added to confirm the upgrade is executed as expected. BUG=618659 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/2ece5a75956f9df5c0a78939a8f06d4e09b6e860 Cr-Commit-Position: refs/heads/master@{#404567}

Patch Set 1 #

Patch Set 2 : Avoid re-upgrading for frames and un-hacked implementation. #

Total comments: 9

Patch Set 3 : Addressed nasko@'s comments. #

Total comments: 6

Patch Set 4 : Addressed mkwst@'s comments. #

Total comments: 20

Patch Set 5 : Addressed mkwst@' 2nd round and clamy@'s comments. #

Total comments: 4

Patch Set 6 : Minor changes from clamy@'s comments. #

Total comments: 2

Patch Set 7 : Simplified cross site URL code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -31 lines) Patch
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 4 5 6 6 chunks +92 lines, -7 lines 0 comments Download
A + content/test/data/https_upgrade_cross_site.html View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
A + content/test/data/https_upgrade_same_site.html View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FetchContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 2 chunks +16 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (11 generated)
carlosk
clamy@: PTAL at the content/** files. mkwst@: PTAL at the third_party/WebKit/** files. This implements what ...
4 years, 5 months ago (2016-06-28 14:44:32 UTC) #3
nasko
https://codereview.chromium.org/2109633002/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (left): https://codereview.chromium.org/2109633002/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#oldcode49 content/browser/frame_host/navigation_handle_impl_browsertest.cc:49: last_committed_url_ = GURL(); On 2016/06/28 14:44:32, carlosk wrote: > ...
4 years, 5 months ago (2016-06-28 22:38:20 UTC) #5
carlosk
Thanks! https://codereview.chromium.org/2109633002/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (left): https://codereview.chromium.org/2109633002/diff/20001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#oldcode49 content/browser/frame_host/navigation_handle_impl_browsertest.cc:49: last_committed_url_ = GURL(); On 2016/06/28 22:38:20, nasko wrote: ...
4 years, 5 months ago (2016-07-01 20:22:52 UTC) #6
Mike West
https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode659 content/browser/frame_host/navigation_handle_impl_browsertest.cc:659: ASSERT_FALSE(iframe_secure_url.has_port()); I'm missing something; how does this work? Don't ...
4 years, 5 months ago (2016-07-04 08:33:25 UTC) #7
carlosk
Thanks. https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode659 content/browser/frame_host/navigation_handle_impl_browsertest.cc:659: ASSERT_FALSE(iframe_secure_url.has_port()); On 2016/07/04 08:33:25, Mike West wrote: > ...
4 years, 5 months ago (2016-07-04 09:22:59 UTC) #8
Mike West
https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/40001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode659 content/browser/frame_host/navigation_handle_impl_browsertest.cc:659: ASSERT_FALSE(iframe_secure_url.has_port()); On 2016/07/04 at 09:22:59, carlosk wrote: > I'm ...
4 years, 5 months ago (2016-07-04 09:31:43 UTC) #9
Mike West
Looks good except for the port thing in the browsertest, which I still don't really ...
4 years, 5 months ago (2016-07-04 09:32:11 UTC) #10
clamy
Thanks! A few comments below. https://codereview.chromium.org/2109633002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/60001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode25 content/browser/frame_host/navigation_handle_impl_browsertest.cc:25: // with the expected ...
4 years, 5 months ago (2016-07-04 11:22:09 UTC) #11
carlosk
Thanks the mix of your suggestions the test structure changed quite some but IMO for ...
4 years, 5 months ago (2016-07-05 09:57:24 UTC) #13
clamy
https://codereview.chromium.org/2109633002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode289 content/browser/frame_host/navigation_handle_impl_browsertest.cc:289: const std::vector<GURL>& GetStartedUrls() const { return start_urls; } s/GetStartedUrls/start_urls() ...
4 years, 5 months ago (2016-07-05 11:36:37 UTC) #14
carlosk
Thanks. https://codereview.chromium.org/2109633002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/100001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode289 content/browser/frame_host/navigation_handle_impl_browsertest.cc:289: const std::vector<GURL>& GetStartedUrls() const { return start_urls; } ...
4 years, 5 months ago (2016-07-05 12:04:01 UTC) #15
Mike West
//third_party/WebKit LGTM. //content LGTM2, though I'd like you to comment the port-modification if it's indeed ...
4 years, 5 months ago (2016-07-06 06:55:35 UTC) #16
carlosk
Thanks. There's no issue with the port. https://codereview.chromium.org/2109633002/diff/120001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (right): https://codereview.chromium.org/2109633002/diff/120001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#newcode723 content/browser/frame_host/navigation_handle_impl_browsertest.cc:723: ASSERT_FALSE(cross_site_iframe_secure_url.has_port()); On ...
4 years, 5 months ago (2016-07-06 08:46:21 UTC) #17
clamy
Thanks! Lgtm.
4 years, 5 months ago (2016-07-07 12:31:35 UTC) #18
carlosk
On 2016/07/07 12:31:35, clamy wrote: > Thanks! Lgtm. As I got all files LGTM-ed and ...
4 years, 5 months ago (2016-07-08 09:07:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109633002/140001
4 years, 5 months ago (2016-07-08 09:07:58 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/252110)
4 years, 5 months ago (2016-07-08 14:12:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109633002/140001
4 years, 5 months ago (2016-07-08 15:47:51 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/252240)
4 years, 5 months ago (2016-07-08 18:28:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109633002/140001
4 years, 5 months ago (2016-07-09 17:11:40 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 5 months ago (2016-07-09 19:36:15 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-09 19:38:02 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2ece5a75956f9df5c0a78939a8f06d4e09b6e860
Cr-Commit-Position: refs/heads/master@{#404567}

Powered by Google App Engine
This is Rietveld 408576698