Bug 128326, disable save as complete for XML because of serious dataloss bugs. r=bzbarsky, sr=blake, a=asa,ADT.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@119213 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com
2002-04-17 06:29:44 +00:00
parent 918dad7488
commit 33ecf1d294

View File

@@ -282,7 +282,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
};
@@ -746,10 +746,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;
}