DescriptionUse 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 #
Messages
Total messages: 21 (17 generated)
|