summaryrefslogtreecommitdiffstats
path: root/dom/file/Blob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/file/Blob.cpp')
-rw-r--r--dom/file/Blob.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/file/Blob.cpp b/dom/file/Blob.cpp
index 868e501ef9..b3a83d6f0f 100644
--- a/dom/file/Blob.cpp
+++ b/dom/file/Blob.cpp
@@ -50,6 +50,9 @@ NS_IMPL_CYCLE_COLLECTING_ADDREF(Blob)
NS_IMPL_CYCLE_COLLECTING_RELEASE(Blob)
void Blob::MakeValidBlobType(nsAString& aType) {
+ // Ensure non-null content type by default
+ aType.SetIsVoid(false);
+
char16_t* iter = aType.BeginWriting();
char16_t* end = aType.EndWriting();