DescriptionMixed 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 #
Messages
Total messages: 12 (5 generated)
|