зеркало из https://github.com/mozilla/gecko-dev.git
Merge mozilla-central to mozilla-inbound
This commit is contained in:
Коммит
cf7579d105
|
@ -1202,12 +1202,18 @@ nsDocumentEncoder::EncodeToStream(nsIOutputStream* aStream)
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
mStream = aStream;
|
||||
|
||||
bool chromeCaller = nsContentUtils::IsCallerChrome();
|
||||
if (chromeCaller) {
|
||||
mStream = aStream;
|
||||
}
|
||||
nsAutoString buf;
|
||||
|
||||
rv = EncodeToString(buf);
|
||||
|
||||
if (!chromeCaller) {
|
||||
mStream = aStream;
|
||||
}
|
||||
|
||||
// Force a flush of the last chunk of data.
|
||||
FlushText(buf, true);
|
||||
|
||||
|
|
|
@ -2494,8 +2494,12 @@ GetRequestBody(nsIDOMDocument* aDoc, nsIInputStream** aResult,
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// Make sure to use the encoding we'll send
|
||||
rv = serializer->SerializeToStream(aDoc, output, aCharset);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
{
|
||||
nsCxPusher pusher;
|
||||
pusher.PushNull();
|
||||
rv = serializer->SerializeToStream(aDoc, output, aCharset);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
output->Close();
|
||||
|
||||
|
|
|
@ -53,10 +53,6 @@
|
|||
#define WEBRTC_ARCH_32_BITS
|
||||
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||
#define WEBRTC_LITTLE_ENDIAN
|
||||
#elif defined(__MIPSEL__)
|
||||
#define WEBRTC_ARCH_32_BITS
|
||||
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||
#define WEBRTC_LITTLE_ENDIAN
|
||||
#elif defined(__powerpc64__)
|
||||
#define WEBRTC_ARCH_PPC64 1
|
||||
#define WEBRTC_ARCH_64_BITS 1
|
||||
|
|
Загрузка…
Ссылка в новой задаче