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

Issue 537983002: Mixed Content: introduce WebURLRequest::RequestContext checks. (Closed)

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

Description

Mixed Content: introduce WebURLRequest::RequestContext checks. We're currently performing mixed content checks based on Resource::Type, which isn't granular enough to support the behavior specified in the mixed content specification (hence the introduction of the MixedContentBlockingTreatment enum). This patch introduces a new static mixed content checking method based on WebURLRequest::RequestContext, which will allow us to remove most of the complexity of MixedContentChecking in future patches. BUG=411184 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181804

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 3

Patch Set 3 : Cleanup. #

Patch Set 4 : Yay #

Total comments: 1

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -3 lines) Patch
M Source/core/fetch/ResourceFetcher.cpp View 1 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/loader/ImageLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/MixedContentChecker.h View 1 2 3 chunks +14 lines, -1 line 0 comments Download
M Source/core/loader/MixedContentChecker.cpp View 1 2 3 4 2 chunks +124 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Mike West
Jochen, WDYT about this patch? It introduces a new static method in MixedContentChecker, and adds ...
6 years, 3 months ago (2014-09-05 07:02:06 UTC) #2
Mike West
On 2014/09/05 07:02:06, Mike West wrote: > Jochen, WDYT about this patch? It introduces a ...
6 years, 3 months ago (2014-09-05 07:22:59 UTC) #3
Mike West
On 2014/09/05 07:22:59, Mike West wrote: > On 2014/09/05 07:02:06, Mike West wrote: > > ...
6 years, 3 months ago (2014-09-05 07:52:08 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/537983002/diff/20001/Source/core/loader/MixedContentChecker.cpp File Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/537983002/diff/20001/Source/core/loader/MixedContentChecker.cpp#newcode65 Source/core/loader/MixedContentChecker.cpp:65: MixedContentChecker::ContextType contextTypeFromContext(WebURLRequest::RequestContext context) static? https://codereview.chromium.org/537983002/diff/20001/Source/core/loader/MixedContentChecker.h File Source/core/loader/MixedContentChecker.h (right): https://codereview.chromium.org/537983002/diff/20001/Source/core/loader/MixedContentChecker.h#newcode48 ...
6 years, 3 months ago (2014-09-05 08:26:15 UTC) #5
Mike West
Thanks. Mind taking another look?
6 years, 3 months ago (2014-09-05 10:37:44 UTC) #6
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/537983002/diff/60001/Source/core/loader/MixedContentChecker.cpp File Source/core/loader/MixedContentChecker.cpp (right): https://codereview.chromium.org/537983002/diff/60001/Source/core/loader/MixedContentChecker.cpp#newcode46 Source/core/loader/MixedContentChecker.cpp:46: } // namespace not needed?
6 years, 3 months ago (2014-09-09 08:11:57 UTC) #7
Mike West
Thanks! I need to reland that DocumentLoader patch that got reverted on Monday before I ...
6 years, 3 months ago (2014-09-10 08:35:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/537983002/80001
6 years, 3 months ago (2014-09-11 07:33:01 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 08:43:15 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181804

Powered by Google App Engine
This is Rietveld 408576698