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

Issue 1128913004: Improve OriginAccessEntry support for IP addresses. (Closed)

Created:
5 years, 7 months ago by Mike West
Modified:
5 years, 7 months ago
CC:
blink-reviews
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Improve OriginAccessEntry support for IP addresses. The current IP address check in OriginAccessEntry is hardly robust; it just verifies that the last character in the given host is a digit. This patch brings in the processing from GURL::HostIsIPAddress, and adds a number of tests to verify the behavior. It also notes clearly that the 'TreatIPAddressAsDomain' should never be used outside of 'document.domain' layout tests, and even there we should get rid of it ASAP. BUG=477578 R=jochen@chromium.org, rsleevi@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195410

Patch Set 1 #

Total comments: 12

Patch Set 2 : Nits. #

Patch Set 3 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -2 lines) Patch
M Source/platform/weborigin/OriginAccessEntry.h View 3 chunks +8 lines, -0 lines 0 comments Download
M Source/platform/weborigin/OriginAccessEntry.cpp View 1 2 2 chunks +28 lines, -2 lines 0 comments Download
M Source/platform/weborigin/OriginAccessEntryTest.cpp View 1 1 chunk +166 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Mike West
Ryan, does this patch make you happier about https://codereview.chromium.org/1133223002? :) Jochen, WDYT about the `url/` ...
5 years, 7 months ago (2015-05-13 10:27:57 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128913004/1
5 years, 7 months ago (2015-05-13 14:37:31 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-13 14:39:56 UTC) #5
Ryan Sleevi
Holy crap, yeah, that's scary behaviour! Overall LG, with some nits, but jochen knows more ...
5 years, 7 months ago (2015-05-13 23:23:35 UTC) #6
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/1128913004/diff/1/Source/platform/weborigin/OriginAccessEntry.cpp File Source/platform/weborigin/OriginAccessEntry.cpp (right): https://codereview.chromium.org/1128913004/diff/1/Source/platform/weborigin/OriginAccessEntry.cpp#newcode45 Source/platform/weborigin/OriginAccessEntry.cpp:45: bool HostIsIPAddress(const String& host) no indent https://codereview.chromium.org/1128913004/diff/1/Source/platform/weborigin/OriginAccessEntry.cpp#newcode56 Source/platform/weborigin/OriginAccessEntry.cpp:56: ...
5 years, 7 months ago (2015-05-15 14:44:13 UTC) #7
Mike West
WDYT, Jochen? https://codereview.chromium.org/1128913004/diff/1/Source/platform/weborigin/OriginAccessEntry.cpp File Source/platform/weborigin/OriginAccessEntry.cpp (right): https://codereview.chromium.org/1128913004/diff/1/Source/platform/weborigin/OriginAccessEntry.cpp#newcode38 Source/platform/weborigin/OriginAccessEntry.cpp:38: #include <url/third_party/mozilla/url_parse.h> On 2015/05/13 at 23:23:34, Ryan ...
5 years, 7 months ago (2015-05-15 14:45:17 UTC) #8
Mike West
On 2015/05/15 at 14:45:17, Mike West (holiday in DE) wrote: > WDYT, Jochen? Wow. You're ...
5 years, 7 months ago (2015-05-15 14:45:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128913004/40001
5 years, 7 months ago (2015-05-15 14:47:09 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195410
5 years, 7 months ago (2015-05-15 16:16:40 UTC) #13
Mike West
5 years, 7 months ago (2015-05-16 04:59:01 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1135493005/ by mkwst@chromium.org.

The reason for reverting is: ASAN and ClusterFuzz do not like this patch.

BUG=488783.

Powered by Google App Engine
This is Rietveld 408576698