gecko-dev/dom/file
Ray Kraesig fbf8a777af Bug 1820268 - make nsI{Input,Output}Stream::Close() idempotent r=xpcom-reviewers,nika,necko-reviewers,valentin
The `nsIAsync{Input,Output}Stream` base classes' Close() methods are
already documented to be idempotent. Do the same for their synchronous
counterparts, and make the necessary changes to ensure this.

The only known functional change here (modulo the removal of some
uninteresting logging) is to `nsFileInputStream`, which now avoids
calling `Tell()` if the stream is already closed. (The other early-exits
added here are formally redundant, but neither obviously nor robustly
so.)

This silences some console warning spam when running a debug build from
the command line.

Differential Revision: https://phabricator.services.mozilla.com/D171615
2023-03-29 17:01:32 +00:00
..
ipc Bug 1820268 - make nsI{Input,Output}Stream::Close() idempotent r=xpcom-reviewers,nika,necko-reviewers,valentin 2023-03-29 17:01:32 +00:00
tests Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu 2023-03-21 09:09:58 +00:00
uri Bug 1818305 - Part 2: Add a streamStatus method to nsIInputStream, r=xpcom-reviewers,necko-reviewers,geckoview-reviewers,valentin,jesup,m_kato,mccr8 2023-03-15 19:52:34 +00:00
BaseBlobImpl.cpp Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
BaseBlobImpl.h Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
Blob.cpp Bug 1815431 - Remove BlobBodyStreamHolder r=smaug 2023-02-09 07:01:10 +00:00
Blob.h Bug 1798513 - Replace USVString with UTF8String in union types with Blob getter. r=nika 2023-01-11 08:33:47 +00:00
BlobImpl.cpp
BlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
BlobSet.cpp Bug 1798513 - Replace USVString with UTF8String in union types with Blob getter. r=nika 2023-01-11 08:33:47 +00:00
BlobSet.h Bug 1798513 - Replace USVString with UTF8String in union types with Blob getter. r=nika 2023-01-11 08:33:47 +00:00
EmptyBlobImpl.cpp Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
EmptyBlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
File.cpp Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
File.h Bug 1620560 - Part 2: readability-inconsistent-declaration-parameter-name to dom/file r=smaug 2022-05-06 09:00:28 +00:00
FileBlobImpl.cpp Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
FileBlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
FileCreatorHelper.cpp
FileCreatorHelper.h
FileList.cpp
FileList.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
FileReader.cpp Bug 1770630 - Worker stream readers should contribute to busy count. r=dom-worker-reviewers,jstutte 2022-08-03 00:36:01 +00:00
FileReader.h Bug 1770630 - Worker stream readers should contribute to busy count. r=dom-worker-reviewers,jstutte 2022-08-03 00:36:01 +00:00
FileReaderSync.cpp Bug 1803062 - Switch from ordinary bool errors to nsresult errors in code for handling sync loops; r=dom-worker-reviewers,smaug 2022-12-12 16:09:12 +00:00
FileReaderSync.h
MemoryBlobImpl.cpp Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
MemoryBlobImpl.h Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
MultipartBlobImpl.cpp Bug 1798513 - Replace USVString with UTF8String in union types with Blob getter. r=nika 2023-01-11 08:33:47 +00:00
MultipartBlobImpl.h Bug 1778510: Cut over Blob Timestamps to the new design r=smaug 2022-11-29 13:34:21 +00:00
MutableBlobStorage.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
MutableBlobStorage.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
MutableBlobStreamListener.cpp Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8 2023-01-16 23:14:12 +00:00
MutableBlobStreamListener.h Bug 1620560 - Part 2: readability-inconsistent-declaration-parameter-name to dom/file r=smaug 2022-05-06 09:00:28 +00:00
StreamBlobImpl.cpp Bug 1800342: Make NS_NewPipe2 and NS_NewPipe infallible, to reflect reality. r=xpcom-reviewers,necko-reviewers,nika,kershaw 2022-11-14 23:22:16 +00:00
StreamBlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
StringBlobImpl.cpp Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
StringBlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
TemporaryFileBlobImpl.cpp Bug 1754004 - Part 11: Simplify the IPCStream serialization API, r=asuth,necko-reviewers,kershaw 2022-05-13 14:16:13 +00:00
TemporaryFileBlobImpl.h Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug 2022-05-06 09:00:29 +00:00
moz.build