summaryrefslogtreecommitdiffstats
path: root/dom/file/BaseBlobImpl.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /dom/file/BaseBlobImpl.h
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/file/BaseBlobImpl.h')
-rw-r--r--dom/file/BaseBlobImpl.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/dom/file/BaseBlobImpl.h b/dom/file/BaseBlobImpl.h
index 7265fc2104..860421c56a 100644
--- a/dom/file/BaseBlobImpl.h
+++ b/dom/file/BaseBlobImpl.h
@@ -8,6 +8,7 @@
#define mozilla_dom_BaseBlobImpl_h
#include "nsIGlobalObject.h"
+#include "mozilla/dom/Blob.h"
#include "mozilla/dom/BlobImpl.h"
#include "mozilla/ErrorResult.h"
@@ -29,8 +30,7 @@ class BaseBlobImpl : public BlobImpl {
mLength(aLength),
mSerialNumber(NextSerialNumber()),
mLastModificationDate(aLastModifiedDate) {
- // Ensure non-null mContentType by default
- mContentType.SetIsVoid(false);
+ dom::Blob::MakeValidBlobType(mContentType);
}
// Blob constructor without starting point.
@@ -41,8 +41,7 @@ class BaseBlobImpl : public BlobImpl {
mLength(aLength),
mSerialNumber(NextSerialNumber()),
mLastModificationDate(0) {
- // Ensure non-null mContentType by default
- mContentType.SetIsVoid(false);
+ dom::Blob::MakeValidBlobType(mContentType);
}
// Blob constructor with starting point.
@@ -53,8 +52,7 @@ class BaseBlobImpl : public BlobImpl {
mLength(aLength),
mSerialNumber(NextSerialNumber()),
mLastModificationDate(0) {
- // Ensure non-null mContentType by default
- mContentType.SetIsVoid(false);
+ dom::Blob::MakeValidBlobType(mContentType);
}
void GetName(nsAString& aName) const override;