gecko-dev/widget/android
Randall Barker 0cc6f26617 Bug 1392705 - part 3: Call nsBaseWidget::DestroyLayerManager() in nsWindow::Destroy to ensure IPC is not shutdown in the destructor for Android r=jchen
Due to the indeterminate nature of Gecko shutdown, the ref count of the
nsWindow on Android would sometimes go to zero before the XPCOM shutdown
observer was called in nsBaseWindow which is where the compositor thread
IPC is shutdown. If nsBaseWindow::Shutdown does not get called, then the
compositor thread IPC is shutdown in the nsBaseWindow destructor.
Unfortunately while the nsWindow is being deleted, it can be accessed in
the compositor thread and cause a crash in
LayerManagerComposite::RenderToPresentationSurface.
Calling nsBaseWidget::DestroyLayerManager() in nsWindow::Destroy()
ensures it gets called before the destructor gets invoked typically in
the Destroy() call.

MozReview-Commit-ID: KCv8SCmEjnb

--HG--
extra : rebase_source : f48fe01b15ff7e2e8763628dd22a2c926d051e9d
2017-09-05 13:00:06 -07:00
..
bindings Bug 1322650 - Add jni::GetAPIVersion() to get Android API version r=jchen 2017-05-15 09:37:55 -05:00
fennec Bug 1378410 - 3. Update generated bindings; r=jchen 2017-09-01 14:02:44 -04:00
jni Bug 1396850 - explicitly declare static members of templates prior to use; r=darchons 2017-09-06 13:24:04 -04:00
AndroidAlerts.cpp
AndroidAlerts.h
AndroidBridge.cpp Bug 1367850 - Move Android UI thread runnable queue from AndroidBridge to AndroidUiThread r=jchen 2017-07-03 17:18:50 -07:00
AndroidBridge.h Bug 1384828 - Use tid for UI thread detection; r=esawin 2017-08-03 13:06:16 -04:00
AndroidBridgeUtilities.h
AndroidColors.h Bug 1352238 Part 4 - Implement PaintCheckBox/RadioControl and modify the original painting functions. r=mats 2017-09-05 22:44:57 +08:00
AndroidCompositorWidget.cpp Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidCompositorWidget.h Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidContentController.cpp Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidContentController.h Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats 2017-04-20 15:15:14 -07:00
AndroidDirectTexture.h
AndroidGraphicBuffer.h
AndroidJavaWrappers.cpp
AndroidJavaWrappers.h
AndroidJNI.cpp
AndroidJNIWrapper.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
AndroidJNIWrapper.h
AndroidUiThread.cpp Bug 1382922 - Refactor event queue to allow multiple implementations (r=erahm) 2017-08-16 20:55:43 -07:00
AndroidUiThread.h Bug 1367850 - Move Android UI thread runnable queue from AndroidBridge to AndroidUiThread r=jchen 2017-07-03 17:18:50 -07:00
ANRReporter.cpp Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange. 2017-05-01 14:23:34 +10:00
ANRReporter.h
EventDispatcher.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
EventDispatcher.h Bug 1396863 - eliminate -Wignored-qualifiers warning in EventDispatcher; r=darchons 2017-09-06 08:57:08 -04:00
GeckoBatteryManager.h
GeckoEditableSupport.cpp Bug 1266683 - Part 3 - Update notifyIMEContext JNI bindings to include private mode info. r=jchen 2017-07-31 22:45:54 +02:00
GeckoEditableSupport.h Bug 1396867 - silence -Wunused-typedef warnings in GeckoEditableSupport; r=darchons 2017-09-06 08:57:08 -04:00
GeckoNetworkManager.h
GeckoProcessManager.h
GeckoScreenOrientation.h
GeneratedJNINatives.h Bug 1378410 - 3. Update generated bindings; r=jchen 2017-09-01 14:02:44 -04:00
GeneratedJNIWrappers.cpp Bug 1378410 - 3. Update generated bindings; r=jchen 2017-09-01 14:02:44 -04:00
GeneratedJNIWrappers.h Bug 1378410 - 3. Update generated bindings; r=jchen 2017-09-01 14:02:44 -04:00
GfxInfo.cpp
GfxInfo.h
moz.build Bug 1352238 Part 4 - Implement PaintCheckBox/RadioControl and modify the original painting functions. r=mats 2017-09-05 22:44:57 +08:00
nsAndroidProtocolHandler.cpp
nsAndroidProtocolHandler.h
nsAppShell.cpp Bug 1381916 - Remove support for plugins on Android r=jchen,bsmedberg 2017-07-31 12:25:16 -05:00
nsAppShell.h
nsClipboard.cpp
nsClipboard.h
nsDeviceContextAndroid.cpp Bug 1387381 - Remove nsXPIDLString local variables. r=erahm. 2017-08-08 16:07:55 +10:00
nsDeviceContextAndroid.h
nsIAndroidBridge.idl
nsIdleServiceAndroid.cpp
nsIdleServiceAndroid.h
nsLookAndFeel.cpp
nsLookAndFeel.h Bug 1386915 - Add nsLookAndFeel::NativeInit() virtual call for initializing native-side state; r=jfkthame 2017-08-06 15:41:08 -07:00
nsNativeThemeAndroid.cpp Bug 1352238 Part 4 - Implement PaintCheckBox/RadioControl and modify the original painting functions. r=mats 2017-09-05 22:44:57 +08:00
nsNativeThemeAndroid.h Bug 1352238 Part 3 - Implement a fake native theme for checkbox/radio form controls on Android. r=mats,snorp 2017-09-05 22:44:42 +08:00
nsPrintOptionsAndroid.cpp
nsPrintOptionsAndroid.h
nsScreenManagerAndroid.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
nsScreenManagerAndroid.h
nsWidgetFactory.cpp Bug 1352238 Part 3 - Implement a fake native theme for checkbox/radio form controls on Android. r=mats,snorp 2017-09-05 22:44:42 +08:00
nsWindow.cpp Bug 1392705 - part 3: Call nsBaseWidget::DestroyLayerManager() in nsWindow::Destroy to ensure IPC is not shutdown in the destructor for Android r=jchen 2017-09-05 13:00:06 -07:00
nsWindow.h Bug 1396850 - explicitly declare static members of templates prior to use; r=darchons 2017-09-06 13:24:04 -04:00
PrefsHelper.h Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj. 2017-07-31 14:23:50 +10:00