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

Issue 417153004: Treat reserved IP addresses as mixed content. (Closed)

Created:
6 years, 4 months ago by Mike West
Modified:
6 years, 4 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink, gavinp+loader_chromium.org, jamesr, Nate Chapin
Project:
blink
Visibility:
Public.

Description

Treat reserved IP addresses as mixed content. This CL adds a platform method to determine if a hostname is an IPv4 or IPv6 address which has been reserved by IANA. The content-side of this patch will hook the new method up to net::IsReservedIPAddress. This patch will have no practical effect on the web, as the method it defines always returns false. Subsequent patches will break things in the ways we want to break them. BUG=378566

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixes. #

Patch Set 3 : Check realm after http/https. #

Patch Set 4 : Layering. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -2 lines) Patch
M Source/core/loader/MixedContentChecker.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/loader/MixedContentChecker.cpp View 1 2 3 4 chunks +20 lines, -2 lines 1 comment Download
M public/platform/Platform.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mike West
Jochen, WDYT of this approach? More importantly, do you have suggestions for testing this change ...
6 years, 4 months ago (2014-07-31 10:38:24 UTC) #1
jochen (gone - plz use gerrit)
uh, I think I'm not really qualified, maybe Adam? at least on linux, all 127/8 ...
6 years, 4 months ago (2014-07-31 14:55:58 UTC) #2
Mike West
On 2014/07/31 14:55:58, jochen wrote: > uh, I think I'm not really qualified, maybe Adam? ...
6 years, 4 months ago (2014-07-31 15:25:49 UTC) #3
Mike West
Would you mind taking a look at this approach, Adam? The relevant net-dev thread is ...
6 years, 4 months ago (2014-08-01 14:25:31 UTC) #4
abarth-chromium
Mike, I think you should feel like you're the owner of this code now, which ...
6 years, 4 months ago (2014-08-01 18:09:45 UTC) #5
Mike West
Mind taking a look, Ryan? https://codereview.chromium.org/417153004/diff/1/Source/core/loader/MixedContentChecker.cpp File Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/417153004/diff/1/Source/core/loader/MixedContentChecker.cpp#newcode63 Source/core/loader/MixedContentChecker.cpp:63: return SecurityOrigin::create(url)->isReservedIPAddress(); On 2014/08/01 ...
6 years, 4 months ago (2014-08-02 15:21:46 UTC) #6
Mike West
Mind taking a look, Ryan?
6 years, 4 months ago (2014-08-02 15:21:47 UTC) #7
Ryan Sleevi
I was going to punt this to Adam, but I see he's already punted to ...
6 years, 4 months ago (2014-08-04 23:55:45 UTC) #8
palmer
> I was going to punt this to Adam, but I see he's already punted ...
6 years, 4 months ago (2014-08-05 00:05:51 UTC) #9
Mike West
On 2014/08/04 23:55:45, Ryan Sleevi wrote: > I was going to punt this to Adam, ...
6 years, 4 months ago (2014-08-05 06:09:57 UTC) #10
Mike West
On 2014/08/05 00:05:51, Chromium Palmer wrote: > For specifically securely-transported public web content, it should ...
6 years, 4 months ago (2014-08-05 06:16:49 UTC) #11
Mike West
Jochen, do you have opinions about passing a (Web)SecurityOrigin around from core? Halp! https://codereview.chromium.org/417153004/diff/60001/Source/core/loader/MixedContentChecker.cpp File ...
6 years, 4 months ago (2014-08-06 09:08:14 UTC) #12
Mike West
6 years, 4 months ago (2014-08-07 09:15:39 UTC) #13
Splitting this into the platform change
(https://codereview.chromium.org/446363002/), then the chromium side change
(https://codereview.chromium.org/430193002/), then the mixed content change
(TBD).

Powered by Google App Engine
This is Rietveld 408576698