Commit 5f0ce949 authored by jcivelli@chromium.org's avatar jcivelli@chromium.org

Enabling MHTML.

Enabling MHTML reading on the Chrome side now that the WebKit patch
adding support for MHTML landed in WebKit.
That is necessary for the MHTML layout tests to pass.

BUG=83804
TEST=MHTML layout tests should pass.


Review URL: http://codereview.chromium.org/7064044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86560 0039d316-1c4b-4281-b951-d872f2087c98
parent ad85ea40
......@@ -41,6 +41,7 @@
'ENABLE_METER_TAG=1',
'ENABLE_MEDIA_STATISTICS=1',
'ENABLE_MEDIA_STREAM=1',
'ENABLE_MHTML=1',
'ENABLE_NOTIFICATIONS=1',
'ENABLE_OFFLINE_WEB_APPLICATIONS=1',
'ENABLE_OPENTYPE_SANITIZER=1',
......
......@@ -117,7 +117,8 @@ static const MimeInfo secondary_mappings[] = {
{ "application/rdf+xml", "rdf" },
{ "text/xml", "xsl,xbl" },
{ "application/vnd.mozilla.xul+xml", "xul" },
{ "application/x-shockwave-flash", "swf,swl" }
{ "application/x-shockwave-flash", "swf,swl" },
{ "multipart/related", "mht,mhtml" }
};
static const char* FindMimeType(const MimeInfo* mappings,
......@@ -266,12 +267,13 @@ static const char* const supported_non_image_types[] = {
"application/atom+xml",
"application/json",
"application/x-x509-user-cert",
"multipart/related", // For MHTML support.
"multipart/x-mixed-replace"
// Note: ADDING a new type here will probably render it AS HTML. This can
// result in cross site scripting.
};
COMPILE_ASSERT(arraysize(supported_non_image_types) == 16,
supported_non_images_types_must_equal_16);
COMPILE_ASSERT(arraysize(supported_non_image_types) == 17,
supported_non_images_types_must_equal_17);
// Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript.
// Mozilla 1.8 accepts application/javascript, application/ecmascript, and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment