gecko-dev/dom/file/ipc
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
..
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
FileCreatorChild.cpp
FileCreatorChild.h
FileCreatorParent.cpp Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin 2023-01-16 23:14:11 +00:00
FileCreatorParent.h
IPCBlob.ipdlh Bug 1814686 - Part 1b: Add nullable annotations to refcounted types in ipdl, r=ipc-reviewers,mccr8 2023-03-20 15:40:37 +00:00
IPCBlobUtils.cpp
IPCBlobUtils.h
PFileCreator.ipdl
PRemoteLazyInputStream.ipdl
PTemporaryIPCBlob.ipdl
RemoteLazyInputStream.cpp Bug 1820268 - make nsI{Input,Output}Stream::Close() idempotent r=xpcom-reviewers,nika,necko-reviewers,valentin 2023-03-29 17:01:32 +00:00
RemoteLazyInputStream.h
RemoteLazyInputStreamChild.cpp
RemoteLazyInputStreamChild.h
RemoteLazyInputStreamParent.cpp
RemoteLazyInputStreamParent.h
RemoteLazyInputStreamStorage.cpp
RemoteLazyInputStreamStorage.h
RemoteLazyInputStreamThread.cpp
RemoteLazyInputStreamThread.h
TemporaryIPCBlobChild.cpp
TemporaryIPCBlobChild.h
TemporaryIPCBlobParent.cpp
TemporaryIPCBlobParent.h
moz.build
mozIRemoteLazyInputStream.idl