gecko-dev/dom/file
Simon Giesecke 55a58f0a61 Bug 847347 - Ensure that FileReader::GetAsDataURL does not trigger a release-mode assertion failure on large files. r=jstutte,froydnj
We avoid going through Substring which imposes a limit on the string length of
INT32_MAX and failing a MOZ_RELEASE_ASSERT otherwise.

This adds a new `Base64EncodeAppend` function that takes 8-bit char input and
produces 16-bit char output, and appends to an existing string, which is what
we need here to avoid doing a large copy. Base64EncodeHelper is generalized
to accomodate for that.

So in addition to fixing the defect, this also optimizes performance and
memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D87413
2020-08-19 08:11:42 +00:00
..
ipc Bug 1658878 - Isolate BlobURLs per agent-cluster - pref, r=smaug 2020-08-17 09:55:56 +00:00
tests Bug 1658878 - Isolate BlobURLs per agent-cluster - pref, r=smaug 2020-08-17 09:55:56 +00:00
uri Bug 1658878 - Isolate BlobURLs per agent-cluster - cleanup remove method, r=smaug 2020-08-17 09:57:04 +00:00
BaseBlobImpl.cpp Bug 1586761 - P4 - Use new methods in dom/file and dom/events; r=baku 2020-03-25 14:14:37 +00:00
BaseBlobImpl.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
Blob.cpp Bug 1586761 - P4 - Use new methods in dom/file and dom/events; r=baku 2020-03-25 14:14:37 +00:00
Blob.h
BlobImpl.cpp
BlobImpl.h
BlobSet.cpp
BlobSet.h
EmptyBlobImpl.cpp
EmptyBlobImpl.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
File.cpp Bug 1650607 - Do not replace / with : in File constructor. r=baku 2020-08-17 09:52:14 +00:00
File.h
FileBlobImpl.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
FileBlobImpl.h
FileCreatorHelper.cpp
FileCreatorHelper.h
FileList.cpp
FileList.h
FileReader.cpp Bug 847347 - Ensure that FileReader::GetAsDataURL does not trigger a release-mode assertion failure on large files. r=jstutte,froydnj 2020-08-19 08:11:42 +00:00
FileReader.h Bug 1502403 - FileReader should dispatch loadstart asynchronously, r=smaug,ssengupta 2020-06-09 14:41:14 +00:00
FileReaderSync.cpp Bug 1623083 - No recursion in FileReaderSync::SyncRead, r=sg 2020-03-18 09:46:38 +00:00
FileReaderSync.h Bug 1623083 - No recursion in FileReaderSync::SyncRead, r=sg 2020-03-18 09:46:38 +00:00
MemoryBlobImpl.cpp Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj 2020-08-07 07:49:47 +00:00
MemoryBlobImpl.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
MultipartBlobImpl.cpp Bug 1586761 - P4 - Use new methods in dom/file and dom/events; r=baku 2020-03-25 14:14:37 +00:00
MultipartBlobImpl.h Bug 1586761 - P4 - Use new methods in dom/file and dom/events; r=baku 2020-03-25 14:14:37 +00:00
MutableBlobStorage.cpp
MutableBlobStorage.h
MutableBlobStreamListener.cpp
MutableBlobStreamListener.h
StreamBlobImpl.cpp
StreamBlobImpl.h
StringBlobImpl.cpp
StringBlobImpl.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
TemporaryFileBlobImpl.cpp Bug 1648141 - IPCBlobInputStream to RemoteLazyInputStream - part 5 - thread, r=smaug 2020-06-29 13:39:01 +00:00
TemporaryFileBlobImpl.h Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
moz.build