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

Issue 845303003: Tag SecurityContext objects as being hosted in reserved IP ranges. (Closed)

Created:
5 years, 11 months ago by Mike West
Modified:
5 years, 11 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, rwlbuis, sof, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Tag SecurityContext objects as being hosted in reserved IP ranges. [1/2] This will allow us to tag requests from those contexts in order to allow the network stack to make intelligent decisions about whether or not it should allow requests to reserved IP ranges go through, or whether they should be blocked in the presence of an as-yet-to-be-introduced flag. This patch simply adds a boolean to SecurityContext and uses it to do the measuring that we're currently doing, rather than recalculating the Document's state for every request. Patch 1 - Blink: [THIS PATCH] Patch 2 - Chromium: https://codereview.chromium.org/852573002 BUG=378566 R=jochen@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188309

Patch Set 1 #

Patch Set 2 : Nullcheck. #

Patch Set 3 : Skip 'about:blank', 'swappedout://', etc. #

Total comments: 5

Patch Set 4 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M Source/core/dom/Document.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentInit.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/DocumentInit.cpp View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/dom/SecurityContext.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/dom/SecurityContext.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/MixedContentChecker.cpp View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Mike West
Does this seem reasonable, Jochen? -mike
5 years, 11 months ago (2015-01-13 08:54:34 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/845303003/diff/40001/Source/core/dom/DocumentInit.cpp File Source/core/dom/DocumentInit.cpp (right): https://codereview.chromium.org/845303003/diff/40001/Source/core/dom/DocumentInit.cpp#newcode131 Source/core/dom/DocumentInit.cpp:131: // TODO: Fix the platform API to drop the ...
5 years, 11 months ago (2015-01-13 15:04:55 UTC) #2
Mike West
Thanks. https://codereview.chromium.org/845303003/diff/40001/Source/core/dom/DocumentInit.cpp File Source/core/dom/DocumentInit.cpp (right): https://codereview.chromium.org/845303003/diff/40001/Source/core/dom/DocumentInit.cpp#newcode131 Source/core/dom/DocumentInit.cpp:131: // TODO: Fix the platform API to drop ...
5 years, 11 months ago (2015-01-13 15:35:38 UTC) #3
jochen (gone - plz use gerrit)
lgtm
5 years, 11 months ago (2015-01-13 15:40:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845303003/60001
5 years, 11 months ago (2015-01-13 15:52:22 UTC) #6
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 18:09:12 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188309

Powered by Google App Engine
This is Rietveld 408576698