gecko-dev/xpcom
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
..
base Bug 1822451 - Add about:memory entries for PHC r=glandium 2023-03-29 11:08:17 +00:00
build Bug 1822484 - Rename IsDevelopmentBuild. r=necko-reviewers,media-playback-reviewers,padenot,emilio 2023-03-21 21:54:27 +00:00
components Bug 1815758 - Reorder StaticProtocolHandler fields to improve padding r=xpcom-reviewers,nika 2023-02-15 17:50:28 +00:00
docs Bug 1809002 - Document cycle collector macros. r=smaug 2023-01-25 00:43:46 +00:00
ds Bug 1166581 - Implement scripting media feature r=emilio 2023-03-28 08:01:49 +00:00
geckoprocesstypes_generator Bug 1806410 - Allow sending crash pings for all processes except for testing-only ones r=chutten 2023-01-24 13:19:10 +00:00
glue Bug 1774864 - Cleanup xpcom/ includes r=sylvestre 2022-06-24 07:13:59 +00:00
idl-parser Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden 2023-03-20 13:06:28 +00:00
io Bug 1820268 - make nsI{Input,Output}Stream::Close() idempotent r=xpcom-reviewers,nika,necko-reviewers,valentin 2023-03-29 17:01:32 +00:00
reflect Bug 1790816 - Reformat xpcom/ with isort. r=mccr8 DONTBUILD 2022-11-22 13:37:48 +00:00
rust Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,whimboo 2023-02-13 15:02:07 +00:00
string Bug 1660405 - Move away from mozilla::IsFinite in favor of std::isfinite. r=sergesanspaille 2023-03-22 11:35:33 +00:00
system Backed out 2 changesets (bug 1804140) for causing multiple failures. 2023-03-20 14:33:35 +02:00
tests Bug 1820359 - Move precise max length limits from `nsSegmentedBuffer` to callers, r=xpcom-reviewers,mccr8 2023-03-24 19:07:44 +00:00
threads Bug 1276351 - remove unused mozilla::tuple. r=sergesanspaille 2023-03-27 07:20:29 +00:00
windbgdlg
xpidl
metrics.yaml Bug 1814718 - Added telemetry for number of timers fired per Timer Thread wake-up. r=smaug,florian 2023-02-15 10:07:44 +00:00
moz.build Bug 1813856 - Update BUG_COMPONENT in xpcom/base to use the new component for nsCycleCollect* files. r=smaug DONTBUILD 2023-01-31 00:50:14 +00:00
xpcom-config.h.in