From 33ecf1d29498caab532cfa9bab35ff6e893c8eae Mon Sep 17 00:00:00 2001 From: "heikki%netscape.com" Date: Wed, 17 Apr 2002 06:29:44 +0000 Subject: [PATCH] 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 --- .../communicator/resources/content/contentAreaUtils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js b/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js index 2609fd456fb..ea371793aef 100644 --- a/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js +++ b/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js @@ -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; } -