gecko-dev/dom/ipc
Luca Greco 821c20ed40 Bug 1568597 - Defer RemoteWorkerService init to ContentChild::RecvRemoteType. r=asuth,nika
I did notice this issue while investigating a test failure on
browser/components/contextualidentity/test/browser/browser_serviceworkers.js

The issue seems to be triggered when we are using a preallocated child process
for a call to RemoteWorkerManager::LaunchNewContentProcess, when that happens
we do expect that the new process is going to call RemoteWorkerManager::RegisterActor
once its RemoteWorkerService is being initialized in the new child process,
but when we are reusing a preallocated child process the RemoteWorkerService
was already initialized and RegisterActor was already called while the
remoteType for the child process was still "prealloc".

This patch fix the failure by deferring initializing RemoteWorkerService in
child processes to when we do receive a non "prealloc" remoteType in
ContentChild::RecvRemoteType.

Differential Revision: https://phabricator.services.mozilla.com/D86590
2020-08-25 10:21:47 +00:00
..
fuzztest Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
jsactor Bug 1658827 - Clear exceptions before returning from JSActor promise handlers, r=kmag 2020-08-17 15:50:04 +00:00
tests Bug 1658827 - Clear exceptions before returning from JSActor promise handlers, r=kmag 2020-08-17 15:50:04 +00:00
BrowserBridgeChild.cpp Bug 1626362 - Move url classifier notifications to parent process. r=nika,necko-reviewers,JuniorHsu 2020-06-25 04:32:28 +00:00
BrowserBridgeChild.h Bug 1626362 - Move url classifier notifications to parent process. r=nika,necko-reviewers,JuniorHsu 2020-06-25 04:32:28 +00:00
BrowserBridgeHost.cpp Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserBridgeHost.h Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserBridgeParent.cpp Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserBridgeParent.h Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserChild.cpp Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin 2020-08-19 15:24:14 +00:00
BrowserChild.h Bug 1639328 - Make sure BrowserChilds for OOP iframes start in a consistent state. r=smaug 2020-08-11 16:42:46 +00:00
BrowserHost.cpp Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserHost.h Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
BrowserParent.cpp Bug 1660345 - Remove unnecessary process checks from BrowserParent, r=kmag 2020-08-24 20:24:04 +00:00
BrowserParent.h Bug 1660345 - Remove unnecessary process checks from BrowserParent, r=kmag 2020-08-24 20:24:04 +00:00
CSPMessageUtils.cpp Bug 1627859 - Convert nsIContentSecurityPolicy* IPDL serialization to use CSPInfo. r=ckerschb 2020-04-10 22:13:58 +00:00
CSPMessageUtils.h
ClonedErrorHolder.cpp Bug 1643049 - Fix string usage in ClonedErrorHolder::Init. r=mccr8 2020-06-03 19:16:51 +00:00
ClonedErrorHolder.h
CoalescedInputData.h
CoalescedMouseData.cpp Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
CoalescedMouseData.h Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
CoalescedWheelData.cpp
CoalescedWheelData.h
ColorPickerParent.cpp
ColorPickerParent.h
ContentChild.cpp Bug 1568597 - Defer RemoteWorkerService init to ContentChild::RecvRemoteType. r=asuth,nika 2020-08-25 10:21:47 +00:00
ContentChild.h Bug 1660049 - Broadcast application-{background,foreground} to content processes. r=nika 2020-08-19 20:46:29 +00:00
ContentParent.cpp Bug 1649131 - Implement history.pushState/.replaceState for session history in the parent. r=smaug 2020-08-23 17:41:03 +00:00
ContentParent.h Bug 1649131 - Implement history.pushState/.replaceState for session history in the parent. r=smaug 2020-08-23 17:41:03 +00:00
ContentProcess.cpp Bug 1651941 - Avoid unnecessary empty StartupCaches r=froydnj 2020-07-22 20:31:21 +00:00
ContentProcess.h Bug 1649071 - Replace the DISALLOW_COPY_AND_ASSIGN & DISALLOW_EVIL_CONSTRUCTORS macros with = delete; r=froydnj 2020-06-29 14:37:56 +00:00
ContentProcessManager.cpp Bug 1640019 - Part 8: Remove unnecessary ASSERT_UNLESS_FUZZING when looking up CP, r=mattwoodrow 2020-06-15 23:24:05 +00:00
ContentProcessManager.h
DOMTypes.ipdlh Bug 1649131 - Stop marking SessionHistoryInfo as moveonly. r=smaug 2020-08-20 12:58:40 +00:00
DocShellMessageUtils.cpp
DocShellMessageUtils.h
EffectsInfo.h
FilePickerParent.cpp Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
FilePickerParent.h Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj 2020-08-04 11:27:07 +00:00
IdType.h
InProcessChild.h Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre 2020-07-08 20:16:06 +00:00
InProcessImpl.cpp Bug 1653729 - Part 2: Add methods for do_QueryActor from nsIDOMProcess*, r=kmag 2020-08-04 21:35:25 +00:00
InProcessParent.h Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre 2020-07-08 20:16:06 +00:00
MMPrinter.cpp Bug 1645510: Part 2 - Avoid using the unprivileged junk scope where possible. r=bholley 2020-06-27 03:06:28 +00:00
MMPrinter.h
ManifestMessagesChild.jsm Bug 1644151, convert manifest from legacy actor to JSWindowActor, r=marcosc 2020-07-07 12:33:26 +00:00
MaybeDiscarded.h Backed out 6 changesets (bug 1626404) for frequent timeouts on test_postMessage_onOther.html CLOSED TREE 2020-04-09 11:07:40 +03:00
MemMapSnapshot.cpp
MemMapSnapshot.h
MemoryReportRequest.cpp Bug 1655536, part 1 - Drop the return value from MemoryReportRequestClient::FinishCallback. r=froydnj 2020-08-03 18:29:02 +00:00
MemoryReportRequest.h Bug 1655536, part 1 - Drop the return value from MemoryReportRequestClient::FinishCallback. r=froydnj 2020-08-03 18:29:02 +00:00
MemoryReportTypes.ipdlh
NativeThreadId.h Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug 2020-07-15 13:24:20 +00:00
PBrowser.ipdl Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
PBrowserBridge.ipdl Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
PColorPicker.ipdl
PContent.ipdl Bug 1649131 - Implement history.pushState/.replaceState for session history in the parent. r=smaug 2020-08-23 17:41:03 +00:00
PContentPermission.ipdlh
PContentPermissionRequest.ipdl
PCycleCollectWithLogs.ipdl
PFilePicker.ipdl Bug 1648141 - IPCBlobInputStream to RemoteLazyInputStream - part 3 - PRemoteLazyInputStream, r=smaug,necko-reviewers,dragana 2020-06-29 11:03:04 +00:00
PInProcess.ipdl Bug 1633379 - Part 1: Move PInProcess into dom/ipc, r=kmag,Yoric 2020-06-25 17:50:51 +00:00
PLoginReputation.ipdl
PPluginWidget.ipdl
PProcessHangMonitor.ipdl Bug 1652613 - report slow script hang durations and only clear hang data after the observer notification, r=mconley 2020-07-24 00:01:57 +00:00
PTabContext.ipdlh Bug 1633820 - Part 5: Get rid of UnsafeIPCTabContext, r=kmag 2020-05-07 22:18:56 +00:00
PURLClassifier.ipdl
PURLClassifierInfo.ipdlh
PURLClassifierLocal.ipdl
PWindowGlobal.ipdl Bug 1626362 - Move url classifier notifications to parent process. r=nika,necko-reviewers,JuniorHsu 2020-06-25 04:32:28 +00:00
PermissionMessageUtils.cpp Bug 1635399 - Function PrincipalInfoToPrincipal now returns Result<nsCOMPtr<nsIPrincipal>, nsresult> r=ckerschb 2020-05-12 19:02:05 +00:00
PermissionMessageUtils.h
PreallocatedProcessManager.cpp Bug 1654926: don't add dead processes to the preallocated process cache r=nika 2020-08-14 14:53:41 +00:00
PreallocatedProcessManager.h Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
PrefsTypes.ipdlh
ProcessActor.cpp Bug 1649477 - Part 2: Unify JSActor manager logic, r=kmag 2020-07-08 14:22:22 +00:00
ProcessActor.h Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
ProcessHangMonitor.cpp Bug 1647695 - Expose ChildID on frozen nsIHangReport;r=mconley 2020-08-03 17:34:53 +00:00
ProcessHangMonitor.h Bug 1652613 - report slow script hang durations and only clear hang data after the observer notification, r=mconley 2020-07-24 00:01:57 +00:00
ProcessHangMonitorIPC.h
ProcessPriorityManager.cpp Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
ProcessPriorityManager.h Bug 1649071 - Replace the DISALLOW_COPY_AND_ASSIGN & DISALLOW_EVIL_CONSTRUCTORS macros with = delete; r=froydnj 2020-06-29 14:37:56 +00:00
PropertyBagUtils.cpp Bug 1633379 - Part 1: Move PInProcess into dom/ipc, r=kmag,Yoric 2020-06-25 17:50:51 +00:00
PropertyBagUtils.h
RefMessageBodyService.cpp Bug 1649347 - RefMessageBody needs to protect the reading when shared cross threads, r=edenchuang 2020-07-02 08:44:14 +00:00
RefMessageBodyService.h Bug 1649347 - RefMessageBody needs to protect the reading when shared cross threads, r=edenchuang 2020-07-02 08:44:14 +00:00
ReferrerInfoUtils.cpp
ReferrerInfoUtils.h
RemoteBrowser.cpp Bug 1580448 - Trivial unified build fixups;r=nika 2020-04-30 16:15:27 +00:00
RemoteBrowser.h Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE 2020-08-05 21:47:50 +03:00
RemoteType.h Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre 2020-07-08 20:16:06 +00:00
RemoteWebProgress.cpp Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs 2020-06-24 19:59:04 +00:00
RemoteWebProgress.h Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs 2020-06-24 19:59:04 +00:00
RemoteWebProgressRequest.cpp Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret 2020-06-24 19:57:30 +00:00
RemoteWebProgressRequest.h Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret 2020-06-24 19:57:30 +00:00
ServiceWorkerConfiguration.ipdlh
SharedMap.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
SharedMap.h
SharedMapChangeEvent.h
SharedMessageBody.cpp Bug 1649347 - RefMessageBody needs to protect the reading when shared cross threads, r=edenchuang 2020-07-02 08:44:14 +00:00
SharedMessageBody.h Bug 1626570 - Improve handling of copying arrays in dom/messagechannel/. r=smaug 2020-05-07 08:10:14 +00:00
SharedStringMap.cpp
SharedStringMap.h
StringTable.h
StructuredCloneData.cpp
StructuredCloneData.h
TabContext.cpp Bug 1633820 - Part 5: Get rid of UnsafeIPCTabContext, r=kmag 2020-05-07 22:18:56 +00:00
TabContext.h Bug 1633820 - Part 4: Remove OriginAttributes from TabContext, r=kmag 2020-05-07 22:18:54 +00:00
TabMessageTypes.h Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug 2020-07-15 13:24:20 +00:00
TabMessageUtils.cpp
TabMessageUtils.h Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug 2020-07-15 13:24:20 +00:00
URLClassifierChild.h Bug 1626570 - Improve handling of copying arrays in dom/ipc/. r=nika 2020-04-30 09:37:05 +00:00
URLClassifierParent.cpp Bug 1650950 - Rename blacklist, whitelist, and skiplist in the anti-tracking and url-classifier code, r=dimi 2020-07-07 16:17:11 +00:00
URLClassifierParent.h
UserActivationIPCUtils.h
WindowGlobalActor.cpp Bug 1650257: Also set NewWindowBCIsTop annotation in parent. r=nika 2020-08-14 19:16:45 +00:00
WindowGlobalActor.h Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi 2020-07-08 20:15:59 +00:00
WindowGlobalChild.cpp Bug 1650257: Add crash annotations for "missing BrowsingContext" crashes. r=nika 2020-08-10 21:21:58 +00:00
WindowGlobalChild.h Bug 1653407 - Part 2: Fix issue with NoteJSContextException, r=kmag 2020-08-04 21:38:47 +00:00
WindowGlobalParent.cpp Bug 1636508 - Make tabs.captureTab compatible with Fission r=mattwoodrow,robwu,geckoview-reviewers,agi 2020-08-25 11:30:52 +00:00
WindowGlobalParent.h Bug 1653407 - Part 2: Fix issue with NoteJSContextException, r=kmag 2020-08-04 21:38:47 +00:00
WindowGlobalTypes.ipdlh Bug 1654469 - Stop generating operator==/operator != for IPDL structs/unions by default. r=nika 2020-07-22 17:24:33 +00:00
jar.mn Bug 1630691: Part 1 - Get rid of most of the remaining mozbrowser API. r=nika,mtigley,bradwerth 2020-04-29 19:29:06 +00:00
moz.build Bug 1653729 - Part 1: Generalize do_QueryActor API, r=kmag 2020-08-04 21:34:29 +00:00
nsIDOMProcessChild.idl Bug 1653729 - Part 2: Add methods for do_QueryActor from nsIDOMProcess*, r=kmag 2020-08-04 21:35:25 +00:00
nsIDOMProcessParent.idl Bug 1653729 - Part 2: Add methods for do_QueryActor from nsIDOMProcess*, r=kmag 2020-08-04 21:35:25 +00:00
nsIHangReport.idl Bug 1647695 - Expose ChildID on frozen nsIHangReport;r=mconley 2020-08-03 17:34:53 +00:00
remote-test.js Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp 2020-06-17 17:17:16 +00:00
test.xhtml Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00