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

Issue 2656443005: Block 'ftp:' subresource requests from non-'ftp:' pages. (Closed)

Created:
3 years, 11 months ago by Mike West
Modified:
3 years, 10 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, Paweł Hajdan Jr., tyoshino+watch_chromium.org, Yoav Weiss
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Block 'ftp:' subresource requests from non-'ftp:' pages. Usage of the 'ftp:' protocol when requesting subresources from non-'ftp:' clients has slowly declined over the last few years to the point where it represents a [negligable amount of traffic][1]. The protocol does not support modern requirements, like encryption, and we're interested in removing support from //net. To that end, this patch alters Fetch to block FTP subresources from webby clients. That is, a page delivered from `http://example.com/` will receive a network error response to requests like those generated from `<img src='ftp://example.com/image.png'>`. Intent: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/bIJdwwoQ98U/-F1aL2FgBAAJ PR against Fetch: https://github.com/whatwg/fetch/pull/464. BUG=435547 Review-Url: https://codereview.chromium.org/2656443005 Cr-Commit-Position: refs/heads/master@{#451709} Committed: https://chromium.googlesource.com/chromium/src/+/e4cfac9d67e1b30d60f84def4a7c7cb5f4883c66

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Tests #

Patch Set 4 : experimental #

Patch Set 5 : Compile first, then upload... #

Patch Set 6 : test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/security/block-test-expected.txt View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (35 generated)
Mike West
experimental
3 years, 10 months ago (2017-02-20 09:48:43 UTC) #17
Mike West
Jochen, I'd like to block this in tests for M58, and plan to remove the ...
3 years, 10 months ago (2017-02-20 09:49:51 UTC) #21
Mike West
Hrm. Looks like the experimental flag doesn't persist through to unit/browser tests... which I guess ...
3 years, 10 months ago (2017-02-20 12:44:07 UTC) #33
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-20 12:46:56 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2656443005/120001
3 years, 10 months ago (2017-02-21 06:26:18 UTC) #38
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 06:34:19 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e4cfac9d67e1b30d60f84def4a7c...

Powered by Google App Engine
This is Rietveld 408576698