gecko-dev/widget/windows
Gabriele Svelto b0e6709e13 Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj
This patch initializes some HAL components greedily so that we can get rid of
lazy initializers within the code. Observers are still lazily initialized
because they can be instanced within content processes but that doesn't always
happen and we don't want to pay the memory price for structures we don't use.

Shutdown is now happening at a fixed time for all HAL components save
WakeLocks. This ensures that we don't destroy an object while still iterating
over it, something that could happen before.

Finally a workaround for a compiler limitation has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D3100

--HG--
extra : moz-landing-system : lando
2018-08-31 20:29:30 +00:00
..
gtest
res
tests
AudioSession.cpp
AudioSession.h
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp
CompositorWidgetParent.h
GfxInfo.cpp Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov 2018-07-05 15:42:11 +02:00
GfxInfo.h
IEnumFE.cpp
IEnumFE.h
IMMHandler.cpp
IMMHandler.h
InkCollector.cpp
InkCollector.h
InProcessWinCompositorWidget.cpp
InProcessWinCompositorWidget.h
JumpListBuilder.cpp Bug 1474272 part 4 - Stop using js::GetGlobalForObjectCrossCompartment in xpc::NativeGlobal. r=bholley 2018-08-01 11:25:50 +02:00
JumpListBuilder.h Bug 1425144 - Init Jump list on lazy idle thread r=aklotz 2018-06-27 08:59:07 -07:00
JumpListItem.cpp
JumpListItem.h
KeyboardLayout.cpp Bug 971462 - Hide event type from constructor of WidgetCommandEvent r=smaug 2018-07-30 12:20:47 +00:00
KeyboardLayout.h
LSPAnnotator.cpp
moz.build Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj 2018-07-31 22:10:07 +09:00
nsAppShell.cpp Bug 1476250 - Simplify HAL initialization and shutdown to reduce the chance of leaks and UAFs r=froydnj 2018-08-31 20:29:30 +00:00
nsAppShell.h
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium 2018-08-28 15:56:01 +10:00
nsClipboard.h
nsColorPicker.cpp
nsColorPicker.h
nsDataObj.cpp
nsDataObj.h
nsDataObjCollection.cpp
nsDataObjCollection.h
nsdefs.h
nsDeviceContextSpecWin.cpp
nsDeviceContextSpecWin.h
nsDragService.cpp Bug 1473029, convert drag services to internally use CSSIntRegion instead ns nsIScriptableRegion, r=mstange 2018-08-07 09:32:08 -04:00
nsDragService.h Bug 1473029, convert drag services to internally use CSSIntRegion instead ns nsIScriptableRegion, r=mstange 2018-08-07 09:32:08 -04:00
nsFilePicker.cpp Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj 2018-08-18 21:06:32 -07:00
nsFilePicker.h
nsIdleServiceWin.cpp
nsIdleServiceWin.h
nsImageClipboard.cpp
nsImageClipboard.h
nsLookAndFeel.cpp Bug 1365045 - Implement prefers-reduced-motion for Windows. r=jimm 2018-07-24 16:50:48 +09:00
nsLookAndFeel.h
nsNativeDragSource.cpp
nsNativeDragSource.h
nsNativeDragTarget.cpp
nsNativeDragTarget.h
nsNativeThemeWin.cpp Bug 1487978 - Fix C4305 warning on msvc from bug 1471086. 2018-09-03 11:45:32 +10:00
nsNativeThemeWin.h Bug 1478391: Autogenerate StyleAppearance. r=jwatt 2018-07-26 17:06:17 +02:00
nsPrintDialogUtil.cpp
nsPrintDialogUtil.h
nsPrintDialogWin.cpp
nsPrintDialogWin.h
nsPrintSettingsServiceWin.cpp
nsPrintSettingsServiceWin.h
nsPrintSettingsWin.cpp
nsPrintSettingsWin.h
nsSound.cpp
nsSound.h
nsToolkit.cpp
nsToolkit.h
nsUXThemeConstants.h
nsUXThemeData.cpp
nsUXThemeData.h
nsWidgetFactory.cpp Bug 1484848 - Remove the XPCOM component registrations for window and child window; r=mstange 2018-08-21 16:20:28 -04:00
nsWindow.cpp Bug 1484848 - Remove the XPCOM component registrations for window and child window; r=mstange 2018-08-21 16:20:28 -04:00
nsWindow.h Bug 1484848 - Remove the XPCOM component registrations for window and child window; r=mstange 2018-08-21 16:20:28 -04:00
nsWindowBase.cpp
nsWindowBase.h
nsWindowDbg.cpp
nsWindowDbg.h
nsWindowDefs.h
nsWindowGfx.cpp
nsWindowGfx.h
nsWinGesture.cpp
nsWinGesture.h
PCompositorWidget.ipdl
PDFiumChild.cpp
PDFiumChild.h
PDFiumEngineShim.cpp
PDFiumEngineShim.h
PDFiumParent.cpp
PDFiumParent.h
PDFiumProcessChild.cpp
PDFiumProcessChild.h
PDFiumProcessParent.cpp
PDFiumProcessParent.h
PDFViaEMFPrintHelper.cpp
PDFViaEMFPrintHelper.h
PlatformWidgetTypes.ipdlh
PPDFium.ipdl
resource.h
ScreenHelperWin.cpp
ScreenHelperWin.h
TaskbarPreview.cpp Bug 1485253 - fix crashes due to dead windows' taskbar preview objects sticking around, r=m_kato,florian 2018-08-30 00:58:19 +00:00
TaskbarPreview.h
TaskbarPreviewButton.cpp
TaskbarPreviewButton.h
TaskbarTabPreview.cpp
TaskbarTabPreview.h
TaskbarWindowPreview.cpp
TaskbarWindowPreview.h
touchinjection_sdk80.h
TSFTextStore.cpp Bug 1481153 - part 4: Should stop hacking the result of TSFTextStore::GetTextExt() when Win10 build 17643 only in Nightly or early Beta r=m_kato 2018-08-07 21:30:52 +09:00
TSFTextStore.h Bug 1467373 - part 1: Split hack for TS_E_NOLAYOUT part from TSFTextStore::GetTextExt() r=m_kato 2018-08-02 14:36:03 +09:00
widget.rc
WidgetTraceEvent.cpp
WinCompositorWidget.cpp
WinCompositorWidget.h
WinCompositorWindowThread.cpp
WinCompositorWindowThread.h
WindowHook.cpp
WindowHook.h
WindowsEMF.cpp
WindowsEMF.h
WindowsUIUtils.cpp
WindowsUIUtils.h
WinHeaderOnlyUtils.h Bug 1477402: Wrap WaitForInputIdle with checks for ERROR_NOT_GUI_PROCESS failures; r=agashlin 2018-07-20 15:54:08 -06:00
WinIMEHandler.cpp
WinIMEHandler.h
WinMessages.h
WinModifierKeyState.h
WinMouseScrollHandler.cpp Bug 971462 - Hide event type from constructor of WidgetCommandEvent r=smaug 2018-07-30 12:20:47 +00:00
WinMouseScrollHandler.h Bug 1473631: Part 0a - Make preference callbacks typesafe. r=njn 2018-07-06 12:24:41 -07:00
WinNativeEventData.h
WinPointerEvents.cpp
WinPointerEvents.h
WinTaskbar.cpp
WinTaskbar.h
WinTextEventDispatcherListener.cpp
WinTextEventDispatcherListener.h
WinUtils.cpp Bug 1425144 - Init Jump list on lazy idle thread r=aklotz 2018-06-27 08:59:07 -07:00
WinUtils.h Bug 1425144 - Init Jump list on lazy idle thread r=aklotz 2018-06-27 08:59:07 -07:00