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

Issue 544573002: Mixed Content: Move subframe checks into ResourceFetcher. (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: Move subframe checks into ResourceFetcher. Currently we're checking for mixed content when loading the main resource of subframes in two places: DocumentLoader and ResourceFetcher. The former properly checks against the frame's parent frame, while the latter bypasses the checks entirely by virtue of the request's 'Resource::Type' being 'Main'. This is both confusing and difficult to replicate when moving to the brave new world of request contexts and frame types that Fetch now defines. This patch drops the DocumentLoader check, and moves the relevant logic into ResourceFetcher::canRequest and ResourceFetcher::checkInsecureContent. BUG=400087 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181383

Patch Set 1 : Fix #

Total comments: 2

Patch Set 2 : printf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -42 lines) Patch
M Source/core/fetch/ResourceFetcher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 9 chunks +45 lines, -32 lines 0 comments Download
M Source/core/loader/DocumentLoader.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Mike West
Jochen, would you mind taking a look at this patch? It should have no web-visible ...
6 years, 3 months ago (2014-09-04 10:44:12 UTC) #3
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/544573002/diff/20001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/544573002/diff/20001/Source/core/fetch/ResourceFetcher.cpp#newcode628 Source/core/fetch/ResourceFetcher.cpp:628: // printf("Evaluating %s in %s\n- Type: %d\n- Context: ...
6 years, 3 months ago (2014-09-04 11:06:23 UTC) #4
Mike West
https://codereview.chromium.org/544573002/diff/20001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/544573002/diff/20001/Source/core/fetch/ResourceFetcher.cpp#newcode628 Source/core/fetch/ResourceFetcher.cpp:628: // printf("Evaluating %s in %s\n- Type: %d\n- Context: %d\n- ...
6 years, 3 months ago (2014-09-04 11:07:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/544573002/40001
6 years, 3 months ago (2014-09-04 12:19:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/544573002/40001
6 years, 3 months ago (2014-09-04 16:05:08 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001) as 181383
6 years, 3 months ago (2014-09-04 17:20:55 UTC) #11
jochen (gone - plz use gerrit)
6 years, 3 months ago (2014-09-08 08:31:40 UTC) #12
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in
https://codereview.chromium.org/550083003/ by jochen@chromium.org.

The reason for reverting is: calls V8 from a non-V8 context.

Powered by Google App Engine
This is Rietveld 408576698