Bug 128326, disable saving XML as complete because it has serious dataloss bugs. r=bzbarsky, sr=blake.

This commit is contained in:
heikki%netscape.com 2006-07-29 05:40:24 +00:00
Родитель a183f6750a
Коммит fe4474be1a
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -273,7 +273,7 @@ function foundHeaderInfo(aSniffer, aData)
source : source,
contentType : (isDocument && fp.filterIndex == 2) ? "text/plain" : contentType,
target : fp.file,
postData : isDocument ? getPostData() : null,
postData : aData.document ? getPostData() : null,
bypassCache : aData.bypassCache
};
@ -737,10 +737,11 @@ function isDocumentType(aContentType)
{
switch (aContentType) {
case "text/html":
return true;
case "text/xml":
case "application/xhtml+xml":
return true;
case "application/xml":
return false; // XXX Disables Save As Complete until it works for XML
}
return false;
}