gecko-dev/dom/ipc
Aaron Klotz 094a7b0970 Bug 1161169: Clean up usage of mContentParent and clearly identify it as specifically for async plugin init; r=billm,jimm
mContentParent is really just to be used while handling a synchronous
ContentParent::RecvLoadPlugin call when async plugin init turned on.

In any other context, using it will be unsafe.

This patch adds comments and assertions to ensure that this value isn't set
otherwise, and converts the one use of mContentParent outside of async plugin
init to use an alternative mechanism for identifying the content process.

MozReview-Commit-ID: Esgt1kj0MCt

--HG--
extra : rebase_source : 166b913b401582c6948e4b61efc102dc1b9c8d2f
2016-03-03 00:24:36 -07:00
..
tests Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco 2016-02-08 11:24:22 -08:00
AppProcessChecker.cpp Bug 1238160 - Add assertions in non-desktop code paths. r=bz,fabrice 2016-03-02 10:35:56 -06:00
AppProcessChecker.h
Blob.cpp Bug 1247117: De-namespace much of IndexedDB. r=baku 2016-02-16 13:46:08 -08:00
BlobChild.h Bug 1211266 - Remote blobs coming from a different thread and a different manager must be kept alive until the creation of depending RemoteBlobs is not completed, r=bent, f=gerard-majax 2015-11-28 10:48:28 +00:00
BlobParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
BrowserConfiguration.ipdlh
ColorPickerParent.cpp Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
ColorPickerParent.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
ContentBridgeChild.cpp Bug 1226200: Don't assume a TCPSocket has only one managee (and rename LoneManagedOrNull) r=jdm 2015-12-22 10:14:23 -05:00
ContentBridgeChild.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
ContentBridgeParent.cpp Bug 1226200: Don't assume a TCPSocket has only one managee (and rename LoneManagedOrNull) r=jdm 2015-12-22 10:14:23 -05:00
ContentBridgeParent.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
ContentChild.cpp Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer 2016-03-02 10:35:56 -06:00
ContentChild.h Don't propagate simulated device resets to child processes. (bug 1245765 part 3, r=mattwoodrow) 2016-02-29 01:53:13 -05:00
ContentParent.cpp Bug 1197461 - e10s support for Permissions.revoke. r=poiru 2016-03-02 21:09:48 +00:00
ContentParent.h Bug 1197461 - e10s support for Permissions.revoke. r=poiru 2016-03-02 21:09:48 +00:00
ContentProcess.cpp Bug 1237847 - [e10s] Null deref crash when running test_pluginstream_newstream.html; r=bobowen 2016-02-25 15:26:13 -08:00
ContentProcess.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
ContentProcessManager.cpp Bug 1172870 - Part 2 - Enable ServiceWorkerClients::OpenWindow on e10s desktop. r=smaug 2015-10-30 01:30:57 +02:00
ContentProcessManager.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
CPOWManagerGetter.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
CrashReporterChild.cpp Bug 1226200: Don't assume a TCPSocket has only one managee (and rename LoneManagedOrNull) r=jdm 2015-12-22 10:14:23 -05:00
CrashReporterChild.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
CrashReporterParent.cpp Bug 1238082 - Fix mode lines in dom/ipc. r=baku 2016-01-08 12:40:26 -08:00
CrashReporterParent.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
DOMTypes.ipdlh Bug 1174624 - Add the Transferable parameter into SendAsyncMessage of nsFrameMessageManager. r=baku 2016-01-31 22:48:00 +01:00
extensions.js Bug 1214133 - Preload ExtensionContent.jsm to get rid of the overhead. r=fabrice 2015-10-13 17:39:52 +08:00
FilePickerParent.cpp Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
FilePickerParent.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
IdType.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
jar.mn Bug 1190995 - backout 0450f02a2b3b for M1 failures 2015-08-14 17:57:34 -07:00
manifestMessages.js
moz.build Bug 1168042, support accesskey redirecting to content process, r=masayuki 2015-09-18 08:19:13 -04:00
nsICachedFileDescriptorListener.h
nsIContentChild.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsIContentChild.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
nsIContentParent.cpp Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer 2016-03-02 10:35:56 -06:00
nsIContentParent.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
nsIHangReport.idl Bug 1119442 - Update hang ui, remove drop down options and replace with simpler 'just fix it' button interface. r=mconley 2015-11-02 06:37:25 -06:00
nsIRemoteBlob.h
NuwaChild.cpp Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
NuwaChild.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
NuwaParent.cpp Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
NuwaParent.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
PBlob.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PBlobStream.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PBrowser.ipdl Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-23 17:10:00 +01:00
PBrowserOrId.ipdlh
PColorPicker.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PContent.ipdl Bug 1197461 - e10s support for Permissions.revoke. r=poiru 2016-03-02 21:09:48 +00:00
PContentBridge.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PContentDialog.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PContentPermission.ipdlh
PContentPermissionRequest.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PCrashReporter.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PCycleCollectWithLogs.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PDocumentRenderer.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PermissionMessageUtils.cpp
PermissionMessageUtils.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
PFilePicker.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PMemoryReportRequest.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PNuwa.ipdl
PPluginWidget.ipdl
PProcessHangMonitor.ipdl Bug 1161169: Clean up usage of mContentParent and clearly identify it as specifically for async plugin init; r=billm,jimm 2016-03-03 00:24:36 -07:00
PreallocatedProcessManager.cpp Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
PreallocatedProcessManager.h
preload.js Bug 1217515 - Clean up the way touch event support is configured. r=roc 2015-10-26 16:06:27 -04:00
ProcessHangMonitor.cpp Bug 1161169: Clean up usage of mContentParent and clearly identify it as specifically for async plugin init; r=billm,jimm 2016-03-03 00:24:36 -07:00
ProcessHangMonitor.h
ProcessHangMonitorIPC.h
ProcessPriorityManager.cpp Bug 1238160 - Set tab context's isolation from frame attr. r=smaug 2016-03-02 10:35:56 -06:00
ProcessPriorityManager.h
PScreenManager.ipdl Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
PTabContext.ipdlh Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer 2016-03-02 10:35:56 -06:00
remote-test.js
ScreenManagerParent.cpp Bug 1224609 - Ensure the primary screen is always returned in RecvScreenForBrowser if all else fails. r=wmccloskey 2015-11-16 12:54:34 +00:00
ScreenManagerParent.h
StructuredCloneData.cpp Bug 1174624 - Add PortIdentifier copy code in order to communicate with same process. r=baku 2016-02-15 19:43:00 +01:00
StructuredCloneData.h Bug 1174624 - Add the Transferable parameter into SendAsyncMessage of nsFrameMessageManager. r=baku 2016-01-31 22:48:00 +01:00
TabChild.cpp Bug 1227861 - Add OriginAttributes getter/setter into nsIDocShell. r=smaug, sicking 2016-02-16 15:04:14 +08:00
TabChild.h Handle device resets by recreating the compositor, rather than the compositor IPDL stack. (bug 1245765 part 7, r=mattwoodrow) 2016-02-29 01:53:15 -05:00
TabContext.cpp Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer 2016-03-02 10:35:56 -06:00
TabContext.h Bug 1238160 - Set frame type on TabContext. r=billm,mayhemer 2016-03-02 10:35:56 -06:00
TabMessageUtils.cpp Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
TabMessageUtils.h Bug 1235576 - Fix the indentation in dom/ipc, r=smaug 2016-01-05 09:59:30 +00:00
TabParent.cpp Bug 1238160 - Rename nsILoadContext::GetIsInBrowserElement. r=smaug,mayhemer 2016-03-02 10:35:56 -06:00
TabParent.h Bug 1104916 - Implement CSS media query display-mode. r=cam 2016-02-23 17:10:00 +01:00
test.xul