зеркало из https://github.com/mozilla/gecko-dev.git
Bug 128326, disable saving XML as complete because it has serious dataloss bugs. r=bzbarsky, sr=blake.
This commit is contained in:
Родитель
a183f6750a
Коммит
fe4474be1a
|
@ -273,7 +273,7 @@ function foundHeaderInfo(aSniffer, aData)
|
||||||
source : source,
|
source : source,
|
||||||
contentType : (isDocument && fp.filterIndex == 2) ? "text/plain" : contentType,
|
contentType : (isDocument && fp.filterIndex == 2) ? "text/plain" : contentType,
|
||||||
target : fp.file,
|
target : fp.file,
|
||||||
postData : isDocument ? getPostData() : null,
|
postData : aData.document ? getPostData() : null,
|
||||||
bypassCache : aData.bypassCache
|
bypassCache : aData.bypassCache
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -737,10 +737,11 @@ function isDocumentType(aContentType)
|
||||||
{
|
{
|
||||||
switch (aContentType) {
|
switch (aContentType) {
|
||||||
case "text/html":
|
case "text/html":
|
||||||
|
return true;
|
||||||
case "text/xml":
|
case "text/xml":
|
||||||
case "application/xhtml+xml":
|
case "application/xhtml+xml":
|
||||||
return true;
|
case "application/xml":
|
||||||
|
return false; // XXX Disables Save As Complete until it works for XML
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче