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

Issue 2151473002: Small improvements to MixedContentChecker. (Closed)

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

Description

Small improvements to MixedContentChecker. Just a couple of improvements to MixedContentChecker: - Remove uneeded check for data protocol: it's already included in the protocols checked in SecurityOrigin::isSecure. - Improved check for localhost by name to be more complete. BUG=607878, 624275 Committed: https://crrev.com/c9d34b4a2d425b25bdf90e9bf785cd7132f73037 Cr-Commit-Position: refs/heads/master@{#406000}

Patch Set 1 #

Patch Set 2 : Removed the IPv6 extra check. #

Total comments: 6

Patch Set 3 : Added a TODO to SecurityOrigin::isLocalhost #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkUtils.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkUtils.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
carlosk
mkwst@ PTAL. One thing I'm still in doubt about is what I changed from the ...
4 years, 5 months ago (2016-07-13 16:19:20 UTC) #2
Mike West
https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp File third_party/WebKit/Source/core/loader/MixedContentChecker.cpp (left): https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp#oldcode95 third_party/WebKit/Source/core/loader/MixedContentChecker.cpp:95: bool isAllowed = url.protocolIsData() || SecurityOrigin::isSecure(url) || SecurityOrigin::create(url)->isPotentiallyTrustworthy(); Do ...
4 years, 5 months ago (2016-07-14 05:50:17 UTC) #3
Mike West
ping?
4 years, 5 months ago (2016-07-18 08:36:44 UTC) #4
carlosk
Sorry, we were on holidays Thu and Fri last week. https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp File third_party/WebKit/Source/core/loader/MixedContentChecker.cpp (left): https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/core/loader/MixedContentChecker.cpp#oldcode95 ...
4 years, 5 months ago (2016-07-18 09:38:36 UTC) #5
Mike West
https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/platform/network/NetworkUtils.h File third_party/WebKit/Source/platform/network/NetworkUtils.h (right): https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/platform/network/NetworkUtils.h#newcode17 third_party/WebKit/Source/platform/network/NetworkUtils.h:17: PLATFORM_EXPORT bool isLocalHostname(const String& host, bool* isLocal6); On 2016/07/18 ...
4 years, 5 months ago (2016-07-18 12:24:17 UTC) #6
carlosk
Thanks! https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/platform/network/NetworkUtils.h File third_party/WebKit/Source/platform/network/NetworkUtils.h (right): https://codereview.chromium.org/2151473002/diff/20001/third_party/WebKit/Source/platform/network/NetworkUtils.h#newcode17 third_party/WebKit/Source/platform/network/NetworkUtils.h:17: PLATFORM_EXPORT bool isLocalHostname(const String& host, bool* isLocal6); On ...
4 years, 5 months ago (2016-07-18 13:14:02 UTC) #7
carlosk
Running ahead of the trybots mkwst@ found out that that change would break tests. So ...
4 years, 5 months ago (2016-07-18 13:22:17 UTC) #9
Mike West
Bah. LGTM.
4 years, 5 months ago (2016-07-18 13:31:15 UTC) #10
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/2151473002/60001
4 years, 5 months ago (2016-07-18 14:05:50 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-18 15:45:51 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 15:46:02 UTC) #14
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 15:48:28 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c9d34b4a2d425b25bdf90e9bf785cd7132f73037
Cr-Commit-Position: refs/heads/master@{#406000}

Powered by Google App Engine
This is Rietveld 408576698