gecko-dev/dom/cache
Nika Layzell 6720e65c4e Bug 1681529 - Part 11: Avoid using DelayedStart when serialzing the reply from SendOpenStream, r=asuth
Streams serialized with the default nsIInputStream serializer will be serialized
with delayedStart, meaning that when sent from the parent process to the content
process it will be serialized as a RemoteLazyInputStream.

In the specific case of SendOpenStream this causes issues, as the content
process code depends on the synchronous nature of nsIFileInputStream to allow it
to be wrapped in a SnappyUncompressInputStream, which requires a sync stream.

Relying on this property is not generally correct and only works because we know
only nsFileInputStream will be sent by the parent process. Other types of sync
streams may be received as async if they are sufficiently large, such as
nsStringInputStream.

Differential Revision: https://phabricator.services.mozilla.com/D103227
2021-02-04 18:13:22 +00:00
..
test Bug 1619592 - Replace EnsureStorageAndOriginIsInitialized with EnsureTemporaryOriginIsInitialized in dom/cache; r=dom-workers-and-storage-reviewers,sg 2020-11-19 15:41:55 +00:00
Action.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
Action.h Bug 1636050 - dom::cache::Action now inherits from SafeRefCounted r=dom-workers-and-storage-reviewers,sg 2020-07-01 14:20:12 +00:00
ActorChild.cpp Bug 1682536 - Use references/NotNull in CacheWorkerRef. r=dom-workers-and-storage-reviewers,asuth 2020-12-17 16:14:52 +00:00
ActorChild.h Bug 1627892 - Make CacheWorkerRef derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:12:22 +00:00
ActorUtils.h Bug 1636050 - PCacheStreamControl protocol is now refcounted r=dom-workers-and-storage-reviewers,sg 2020-06-09 12:58:44 +00:00
AutoUtils.cpp Bug 1679987 - Replace strtok for Vary header by nsCCharSeparatedTokenizer and range-based for. r=necko-reviewers,dom-workers-and-storage-reviewers,asuth,valentin 2020-12-16 19:10:41 +00:00
AutoUtils.h Bug 1627892 - Make StreamList derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:11:33 +00:00
Cache.cpp Bug 1683828 - Use QM_TRY et al. in Cache. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 15:51:47 +00:00
Cache.h Bug 1627892 - Use SafeRefPtr for Request. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:13:48 +00:00
CacheChild.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CacheChild.h Backed out changeset 75af8f017ad1 (bug 1636050) for assertion failure at CacheStorageChild.cpp. CLOSED TREE 2020-08-05 21:39:56 +03:00
CacheCommon.cpp Bug 1664412 - Mark some error handling functions as MOZ_COLD. r=dom-workers-and-storage-reviewers,janv 2020-09-14 12:14:17 +00:00
CacheCommon.h Bug 1671118 - Rename remaining QM_TRY_VAR occurrences to QM_TRY_ASSIGN/QM_TRY_UNWRAP/QM_TRY_INSPECT (including quota client equivalents); r=dom-workers-and-storage-reviewers,sg 2020-10-14 12:14:14 +00:00
CacheOpChild.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CacheOpChild.h Backed out changeset 75af8f017ad1 (bug 1636050) for assertion failure at CacheStorageChild.cpp. CLOSED TREE 2020-08-05 21:39:56 +03:00
CacheOpParent.cpp Bug 1682536 - Use references/NotNull with Listener. r=dom-workers-and-storage-reviewers,asuth 2021-01-21 11:58:37 +00:00
CacheOpParent.h Backed out changeset 75af8f017ad1 (bug 1636050) for assertion failure at CacheStorageChild.cpp. CLOSED TREE 2020-08-05 21:39:56 +03:00
CacheParent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CacheParent.h Backed out changeset 75af8f017ad1 (bug 1636050) for assertion failure at CacheStorageChild.cpp. CLOSED TREE 2020-08-05 21:39:56 +03:00
CacheStorage.cpp Bug 1683828 - Use QM_TRY et al. in CacheStorage. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 16:30:12 +00:00
CacheStorage.h Bug 1683828 - Use QM_TRY et al. in CacheStorage. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 16:30:12 +00:00
CacheStorageChild.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CacheStorageChild.h Bug 1627892 - Make CacheWorkerRef derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:12:22 +00:00
CacheStorageParent.cpp Bug 1682536 - Use references/NotNull with Listener. r=dom-workers-and-storage-reviewers,asuth 2021-01-21 11:58:37 +00:00
CacheStorageParent.h Bug 1627892 - Make ManagerId derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:13:07 +00:00
CacheStreamControlChild.cpp Bug 1681529 - Part 11: Avoid using DelayedStart when serialzing the reply from SendOpenStream, r=asuth 2021-02-04 18:13:22 +00:00
CacheStreamControlChild.h Bug 1636050 - PCacheStreamControl protocol is now refcounted r=dom-workers-and-storage-reviewers,sg 2020-06-09 12:58:44 +00:00
CacheStreamControlParent.cpp Bug 1681529 - Part 11: Avoid using DelayedStart when serialzing the reply from SendOpenStream, r=asuth 2021-02-04 18:13:22 +00:00
CacheStreamControlParent.h Bug 1655115 - Remove unused code paths leading to dom::cache::StreamControl::CloseReadStreams() r=dom-workers-and-storage-reviewers,ttung 2020-08-04 07:59:48 +00:00
CacheTypes.ipdlh Bug 1682103 - Make nsContentPolicyType a CEnum type. r=ckerschb 2020-12-16 11:36:47 +00:00
CacheWorkerRef.cpp Bug 1682536 - Use references/NotNull in CacheWorkerRef. r=dom-workers-and-storage-reviewers,asuth 2020-12-17 16:14:52 +00:00
CacheWorkerRef.h Bug 1682536 - Use references/NotNull in CacheWorkerRef. r=dom-workers-and-storage-reviewers,asuth 2020-12-17 16:14:52 +00:00
Connection.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
Connection.h
Context.cpp Bug 1689293 - Introduce DirectoryLock::Acquire; r=sg 2021-02-02 08:20:18 +00:00
Context.h Bug 1682536 - Use references/NotNull in Context. r=dom-workers-and-storage-reviewers,asuth 2020-12-15 23:25:30 +00:00
DBAction.cpp Bug 1690291 - Handle NS_ERROR_STORAGE_IOERR when opening a database like NS_ERROR_FILE_CORRUPTED. r=dom-workers-and-storage-reviewers,asuth 2021-02-04 11:43:22 +00:00
DBAction.h Bug 1683828 - Use QM_TRY et al. in DBAction and modernize signatures. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 16:42:32 +00:00
DBSchema.cpp Bug 1683828 - Use QM_TRY et al. in DBSchema. r=dom-workers-and-storage-reviewers,ttung 2021-01-20 16:35:48 +00:00
DBSchema.h Bug 1678030 - Move CollectWhileHasResult to QuotaCommon and use in other quota clients. r=dom-workers-and-storage-reviewers,ttung 2020-12-14 10:42:36 +00:00
FileUtils.cpp Bug 1686749 - Let CreateFile*Stream functions propagate all errors. r=dom-workers-and-storage-reviewers,janv 2021-01-28 11:12:19 +00:00
FileUtils.h Bug 1683828 - Use QM_TRY et al. in FileUtils and modernize signatures. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 16:42:32 +00:00
FileUtilsImpl.h Bug 1683828 - Use QM_TRY et al. in FileUtils and modernize signatures. r=dom-workers-and-storage-reviewers,ttung 2021-01-14 16:42:32 +00:00
IPCUtils.h Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
Manager.cpp Bug 1683828 - Use QM_TRY et al. in QuotaClient. r=dom-workers-and-storage-reviewers,ttung 2021-01-18 08:52:06 +00:00
Manager.h Bug 1682536 - Use references/NotNull in Manager. r=dom-workers-and-storage-reviewers,asuth 2020-12-17 16:14:43 +00:00
ManagerId.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
ManagerId.h Bug 1627892 - Make ManagerId derive from SafeRefCounted. r=dom-workers-and-storage-reviewers,perry 2020-05-11 12:13:07 +00:00
PCache.ipdl
PCacheOp.ipdl Bug 1660470 - Avoid including ErrorIPCUtils.h from header files. r=nika 2020-11-23 16:04:28 +00:00
PCacheStorage.ipdl
PCacheStreamControl.ipdl Bug 1681529 - Part 11: Avoid using DelayedStart when serialzing the reply from SendOpenStream, r=asuth 2021-02-04 18:13:22 +00:00
PrincipalVerifier.cpp Bug 1682536 - Use references/NotNull with Listener. r=dom-workers-and-storage-reviewers,asuth 2021-01-21 11:58:37 +00:00
PrincipalVerifier.h Bug 1682536 - Use references/NotNull with Listener. r=dom-workers-and-storage-reviewers,asuth 2021-01-21 11:58:37 +00:00
QuotaClient.cpp Bug 1687254 - Skip directory entries that no longer exist in GetBodyUsage. r=dom-workers-and-storage-reviewers,janv 2021-01-21 15:33:04 +00:00
QuotaClient.h Bug 1645943 - Check results from nsIFile's functions rather than mozStorage's/SQLite's in LockedGetPaddingSizeFromDB; r=janv,dom-workers-and-storage-reviewers,sg 2020-06-23 06:38:25 +00:00
QuotaClientImpl.h Bug 1683828 - Use QM_TRY et al. in QuotaClient. r=dom-workers-and-storage-reviewers,ttung 2021-01-18 08:52:06 +00:00
ReadStream.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ReadStream.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
SavedTypes.h
StreamControl.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
StreamControl.h Bug 1655115 - Remove unused code paths leading to dom::cache::StreamControl::CloseReadStreams() r=dom-workers-and-storage-reviewers,ttung 2020-08-04 07:59:48 +00:00
StreamList.cpp Bug 1682536 - Use references/NotNull in Manager. r=dom-workers-and-storage-reviewers,asuth 2020-12-17 16:14:43 +00:00
StreamList.h Bug 1655115 - Remove unused code paths leading to dom::cache::StreamControl::CloseReadStreams() r=dom-workers-and-storage-reviewers,ttung 2020-08-04 07:59:48 +00:00
TypeUtils.cpp Bug 1679987 - Replace strtok for Vary header by nsCCharSeparatedTokenizer and range-based for. r=necko-reviewers,dom-workers-and-storage-reviewers,asuth,valentin 2020-12-16 19:10:41 +00:00
TypeUtils.h Bug 1654531 - Remove the support for cache option from cache.match; r=dom-workers-and-storage-reviewers,webidl,asuth,baku 2020-09-17 13:02:46 +00:00
Types.h Bug 1663924 - Replace output parameters by return values on GetInfo* methods. r=dom-workers-and-storage-reviewers,ttung 2020-10-20 11:46:31 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00