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}
Showing
Please register or sign in to comment