From fe4474be1aeb8924942479954eac7c3cec5936b3 Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Sat, 29 Jul 2006 05:40:24 +0000 Subject: [PATCH] Bug 128326, disable saving XML as complete because it has serious dataloss bugs. r=bzbarsky, sr=blake. --- suite/common/contentAreaUtils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/suite/common/contentAreaUtils.js b/suite/common/contentAreaUtils.js index 31f1df5f701d..a0a2280fb47c 100644 --- a/suite/common/contentAreaUtils.js +++ b/suite/common/contentAreaUtils.js @@ -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; } -