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

Issue 2844353003: Use net::HttpContentTypeDisposition in blink (Closed)

Created:
3 years, 7 months ago by yhirano
Modified:
3 years, 7 months ago
Reviewers:
kinuko
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use net::HttpContentTypeDisposition in blink This CL replaces blink::GetContentDispositionType implementation by net::HttpContentTypeDisposition. There are some behavior differences between these two implementations, but because the former is used only to see if the disposition type is attachement, there is only one difference that matters. The former returns kAttachement for empty content disposition type (e.g., ";foo"), but the latter returns kInline. It looks the former is intended to return kNone, but it returns kAttachment due to misuse of confusing WTFString::Split interface. Hence this CL adds IsContentDispositionAttachment and makes it return false when a value with an empty content disposition type is given. BUG=696967 Review-Url: https://codereview.chromium.org/2844353003 Cr-Commit-Position: refs/heads/master@{#467977} Committed: https://chromium.googlesource.com/chromium/src/+/a397826c00c0873475842d7f9d9d03038015dcdf

Patch Set 1 #

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -41 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/loading/empty-content-disposition-type.html View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/loading/resources/empty-content-disposition-type.php View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPParsers.h View 1 2 chunks +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPParsers.cpp View 1 2 chunks +5 lines, -31 lines 0 comments Download

Messages

Total messages: 21 (17 generated)
yhirano
3 years, 7 months ago (2017-04-28 10:34:57 UTC) #12
kinuko
lgtm
3 years, 7 months ago (2017-04-28 13:18:27 UTC) #15
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/2844353003/20001
3 years, 7 months ago (2017-04-28 13:26:47 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 13:30:59 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a397826c00c0873475842d7f9d9d...

Powered by Google App Engine
This is Rietveld 408576698