зеркало из https://github.com/mozilla/gecko-dev.git
0cc6f26617
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 |
||
---|---|---|
.. | ||
bindings | ||
fennec | ||
jni | ||
ANRReporter.cpp | ||
ANRReporter.h | ||
AndroidAlerts.cpp | ||
AndroidAlerts.h | ||
AndroidBridge.cpp | ||
AndroidBridge.h | ||
AndroidBridgeUtilities.h | ||
AndroidColors.h | ||
AndroidCompositorWidget.cpp | ||
AndroidCompositorWidget.h | ||
AndroidContentController.cpp | ||
AndroidContentController.h | ||
AndroidDirectTexture.h | ||
AndroidGraphicBuffer.h | ||
AndroidJNI.cpp | ||
AndroidJNIWrapper.cpp | ||
AndroidJNIWrapper.h | ||
AndroidJavaWrappers.cpp | ||
AndroidJavaWrappers.h | ||
AndroidUiThread.cpp | ||
AndroidUiThread.h | ||
EventDispatcher.cpp | ||
EventDispatcher.h | ||
GeckoBatteryManager.h | ||
GeckoEditableSupport.cpp | ||
GeckoEditableSupport.h | ||
GeckoNetworkManager.h | ||
GeckoProcessManager.h | ||
GeckoScreenOrientation.h | ||
GeneratedJNINatives.h | ||
GeneratedJNIWrappers.cpp | ||
GeneratedJNIWrappers.h | ||
GfxInfo.cpp | ||
GfxInfo.h | ||
PrefsHelper.h | ||
moz.build | ||
nsAndroidProtocolHandler.cpp | ||
nsAndroidProtocolHandler.h | ||
nsAppShell.cpp | ||
nsAppShell.h | ||
nsClipboard.cpp | ||
nsClipboard.h | ||
nsDeviceContextAndroid.cpp | ||
nsDeviceContextAndroid.h | ||
nsIAndroidBridge.idl | ||
nsIdleServiceAndroid.cpp | ||
nsIdleServiceAndroid.h | ||
nsLookAndFeel.cpp | ||
nsLookAndFeel.h | ||
nsNativeThemeAndroid.cpp | ||
nsNativeThemeAndroid.h | ||
nsPrintOptionsAndroid.cpp | ||
nsPrintOptionsAndroid.h | ||
nsScreenManagerAndroid.cpp | ||
nsScreenManagerAndroid.h | ||
nsWidgetFactory.cpp | ||
nsWindow.cpp | ||
nsWindow.h |