diff --git a/content/base/src/nsDocumentEncoder.cpp b/content/base/src/nsDocumentEncoder.cpp index d375d86013a2..a058fb3544bc 100644 --- a/content/base/src/nsDocumentEncoder.cpp +++ b/content/base/src/nsDocumentEncoder.cpp @@ -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); diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 925da46f427b..ac6962e4a476 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -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(); diff --git a/media/webrtc/trunk/src/typedefs.h b/media/webrtc/trunk/src/typedefs.h index 79d991b83f34..e82bbefe9cc1 100644 --- a/media/webrtc/trunk/src/typedefs.h +++ b/media/webrtc/trunk/src/typedefs.h @@ -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