gecko-dev/widget/windows
Andrew Osmond 45b5262f91 Bug 1632698 - Better handle device resets when we don't have a GPU process. r=sotaro,kvark,nical
Aside from on Windows, we do not appear to handle device resets properly
without the GPU process. This patch adds in the necessary plumbing to
handle the device reset properly. It also ensures that whenever we check
for a device reset reason, we handle all of the reasons (e.g. not just
the NV video memory purge reset reason) to ensure they are not lost, and
handles them all consistently in the same manner.

It also tracks the number of device resets for thresholding purposes
with an in process compositor. While it will only disable WebRender on
Linux at this time, it will put a note in the critical log if the
threshold was exceeded on all platforms. This may prove useful in
evaluating whether or not we should do the same everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D98705
2020-12-07 20:36:11 +00:00
..
res
tests Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
AudioSession.cpp Bug 1614585: Use background thread to shut down AudioSession on all Windows versions r=jmathies 2020-03-05 18:57:21 +00:00
AudioSession.h
CompositorWidgetChild.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
CompositorWidgetChild.h Bug 1604412 - Enable remote backbuffer GDI compositing r=jmathies,jld 2020-02-13 14:32:37 +00:00
CompositorWidgetParent.cpp Bug 1654619 - Do not use local backbuffer when remote backbuffer enabled r=mstange 2020-10-06 22:37:51 +00:00
CompositorWidgetParent.h Bug 1654619 - Do not use local backbuffer when remote backbuffer enabled r=mstange 2020-10-06 22:37:51 +00:00
DirectManipulationOwner.cpp Bug 1661108. Only send pan events from DManip if the delta is at least 1. r=kats 2020-09-04 03:27:09 +00:00
DirectManipulationOwner.h Bug 1636646. ifdef direct manipulation code so it's not compiled on mingw. r=aklotz 2020-05-09 21:38:55 +00:00
GfxInfo.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-12-07 10:17:57 +00:00
GfxInfo.h Bug 1672464 - Block WebRender for NVIDIA users with mixed refresh rates. r=jrmuizel 2020-10-23 15:12:41 +00:00
IEnumFE.cpp
IEnumFE.h
IMMHandler.cpp Bug 1678553 - part 13: Make `WidgetQueryContentEvent` use `Maybe` to store some data r=m_kato,geckoview-reviewers 2020-12-02 05:32:19 +00:00
IMMHandler.h
IconLoaderHelperWin.cpp Bug 1663784 - Add Windows platform support for IconLoader. r=mhowell 2020-09-30 21:14:00 +00:00
IconLoaderHelperWin.h Bug 1663784 - Add Windows platform support for IconLoader. r=mhowell 2020-09-30 21:14:00 +00:00
InProcessWinCompositorWidget.cpp Bug 1604412 - Give CompositorWidgetChild more window info r=sotaro 2020-01-08 18:37:38 +00:00
InProcessWinCompositorWidget.h Bug 1604412 - Give CompositorWidgetChild more window info r=sotaro 2020-01-08 18:37:38 +00:00
InkCollector.cpp
InkCollector.h
InputDeviceUtils.cpp
InputDeviceUtils.h
JumpListBuilder.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
JumpListBuilder.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
JumpListItem.cpp
JumpListItem.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
KeyboardLayout.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
KeyboardLayout.h Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp 2020-11-18 09:05:59 +00:00
LSPAnnotator.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
MediaKeysEventSourceFactory.cpp Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
OSKInputPaneManager.cpp Bug 1639824 - Make `OKInputPaneManager` warn only when `TryShow()` and `TryHide()` fail, we're active and we get unexpected result r=m_kato 2020-05-21 15:40:41 +00:00
OSKInputPaneManager.h Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki 2020-04-07 22:30:37 +00:00
PCompositorWidget.ipdl Bug 1660470 - Avoid including WidgetMessageUtils.h from header files. r=nika 2020-11-23 16:04:01 +00:00
PlatformWidgetTypes.ipdlh Bug 1660470 - Avoid including WidgetMessageUtils.h from header files. r=nika 2020-11-23 16:04:01 +00:00
RemoteBackbuffer.cpp Bug 1654619 - Do not use local backbuffer when remote backbuffer enabled r=mstange 2020-10-06 22:37:51 +00:00
RemoteBackbuffer.h Bug 1654617 - Remote Backbuffer: Use multiple dirty rectangles during present r=tkikuchi 2020-09-14 19:46:21 +00:00
ScreenHelperWin.cpp
ScreenHelperWin.h
ShellHeaderOnlyUtils.h Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj 2020-03-28 16:00:09 +00:00
SystemStatusBar.cpp Bug 1672419 - Make sure SystemStatusBar popup menus appear in the right spot regardless of device scaling. r=mhowell 2020-10-27 23:55:59 +00:00
SystemStatusBar.h Bug 1663784 - Implement basic nsISystemStatusBar service for Windows. r=mhowell 2020-09-30 21:14:05 +00:00
TSFTextStore.cpp Bug 1678553 - part 13: Make `WidgetQueryContentEvent` use `Maybe` to store some data r=m_kato,geckoview-reviewers 2020-12-02 05:32:19 +00:00
TSFTextStore.h Bug 1678553 - part 8: Make `TSFTextStore` store its `Selection` with `Maybe` r=m_kato 2020-11-27 14:47:22 +00:00
TaskbarPreview.cpp Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
TaskbarPreview.h Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
TaskbarPreviewButton.cpp
TaskbarPreviewButton.h
TaskbarTabPreview.cpp Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
TaskbarTabPreview.h Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
TaskbarWindowPreview.cpp Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
TaskbarWindowPreview.h Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
ToastNotification.cpp Bug 1680768: Remove unused argument aPrincipal within closeAlert() in nsIAlertsService.idl r=nika 2020-12-07 17:44:34 +00:00
ToastNotification.h
ToastNotificationHandler.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
ToastNotificationHandler.h Bug 1605997: Send the finished notification when the notification is hidden. r=jmathies 2020-01-06 13:08:16 +00:00
UrlmonHeaderOnlyUtils.h Bug 1657208 - Dynamic-load urlmon.dll for x86 system. r=freddyb,mhowell 2020-08-28 21:27:22 +00:00
WidgetTraceEvent.cpp Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug 2019-11-05 17:56:28 +00:00
WinCompositorWidget.cpp Bug 1604412 - Duplicate WinCompositorWidget logic into subclasses r=sotaro 2020-01-08 18:35:22 +00:00
WinCompositorWidget.h Bug 1604412 - Give CompositorWidgetChild more window info r=sotaro 2020-01-08 18:37:38 +00:00
WinCompositorWindowThread.cpp Bug 1664898 - move media/mtransport to media/transport. r=ng 2020-09-22 21:43:49 +00:00
WinCompositorWindowThread.h
WinContentSystemParameters.cpp Bug 1400317 - Win32k Lockdown: Remote IsAppThemed() r=jmathies 2020-06-26 13:16:13 +00:00
WinContentSystemParameters.h Bug 1400317 - Win32k Lockdown: Remote IsAppThemed() r=jmathies 2020-06-26 13:16:13 +00:00
WinHeaderOnlyUtils.h Bug 1677284 - Move PackingStrategy::Variant implementation to separate header file. r=emilio 2020-11-23 15:49:14 +00:00
WinIMEHandler.cpp Bug 1678553 - part 13: Make `WidgetQueryContentEvent` use `Maybe` to store some data r=m_kato,geckoview-reviewers 2020-12-02 05:32:19 +00:00
WinIMEHandler.h Bug 1121822 - Remove NS_ENABLE_TSF r=m_kato,masayuki 2020-10-29 01:46:05 +00:00
WinMessages.h Bug 1653576 - Don't let dmanip events roll up popups if the events are inside the popup. r=tnikkel 2020-08-11 21:44:30 +00:00
WinModifierKeyState.h
WinMouseScrollHandler.cpp Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp 2020-11-18 09:05:59 +00:00
WinMouseScrollHandler.h Bug 1570124 - Enable mouse scrolling in FxR window r=masayuki 2019-11-06 20:38:45 +00:00
WinNativeEventData.h
WinPointerEvents.cpp Bug 1573992 - Convert dom.w3c_pointer_events.dispatch_by_pointer_messages to static pref. r=njn 2019-08-27 00:13:25 +00:00
WinPointerEvents.h Bug 1573992 - Convert dom.w3c_pointer_events.dispatch_by_pointer_messages to static pref. r=njn 2019-08-27 00:13:25 +00:00
WinTaskbar.cpp Bug 1661485 - Make TaskbarPreview::GetWindowHook() return a pointer. r=cmartin 2020-09-28 21:22:11 +00:00
WinTaskbar.h
WinTextEventDispatcherListener.cpp
WinTextEventDispatcherListener.h
WinUtils.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
WinUtils.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
WindowHook.cpp Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin 2020-04-24 13:31:14 +00:00
WindowHook.h
WindowsConsole.cpp Bug 1569089 - Sync std handles after AttachConsole(). r=aklotz 2019-11-07 13:28:45 +00:00
WindowsConsole.h
WindowsEMF.cpp
WindowsEMF.h
WindowsSMTCProvider.cpp Bug 1663128 - part3 : the event source should do the cleanup when it closes. r=chunmin 2020-10-07 09:23:08 +00:00
WindowsSMTCProvider.h Bug 1663128 - part3 : the event source should do the cleanup when it closes. r=chunmin 2020-10-07 09:23:08 +00:00
WindowsUIUtils.cpp Bug 1677284 - Move PackingStrategy::Variant implementation to separate header file. r=emilio 2020-11-23 15:49:14 +00:00
WindowsUIUtils.h Bug 1573029 - Add WindowsShare API r=marcosc,agashlin 2020-02-06 11:12:55 +00:00
components.conf Bug 1663784 - Implement basic nsISystemStatusBar service for Windows. r=mhowell 2020-09-30 21:14:05 +00:00
moz.build Bug 1529510 - Move ProcInfo to processtoolsservice;r=aklotz,mstange 2020-11-12 17:42:54 +00:00
nsAppShell.cpp Bug 1657043 - part3 : implement a new wakelock listener with new API. r=jmathies 2020-08-12 20:57:17 +00:00
nsAppShell.h Bug 1639391: Do not call nsWindow::GetAttention for top-level windows being shown during session restore; r=mhowell 2020-05-22 01:49:11 +00:00
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsClipboard.h
nsColorPicker.cpp Bug 1526820 - Handle WM_INITDIALOG in the ColorPicker hook to enable keyboard focus r=cmartin 2020-08-24 16:58:11 +00:00
nsColorPicker.h
nsDataObj.cpp Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers 2020-11-23 16:10:41 +00:00
nsDataObj.h Bug 1602615 - Add a support for free-threaded IStream to handle Internet shortcuts. r=jmathies 2020-01-06 13:31:47 +00:00
nsDataObjCollection.cpp
nsDataObjCollection.h
nsDeviceContextSpecWin.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsDeviceContextSpecWin.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsDragService.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsDragService.h
nsFilePicker.cpp Bug 1677168: nsFilePicker cleanup; r=mhowell 2020-11-16 19:37:09 +00:00
nsFilePicker.h Bug 1677168: nsFilePicker cleanup; r=mhowell 2020-11-16 19:37:09 +00:00
nsLookAndFeel.cpp Bug 1678540 - Don't provide default values for IntID::ScrollButtonLeftMouseButtonAction etc. r=spohl 2020-11-20 23:52:52 +00:00
nsLookAndFeel.h Bug 1678540 - Refactor nsXPLookAndFeel::GetIntImpl etc. r=spohl 2020-11-20 23:52:47 +00:00
nsNativeBasicThemeWin.cpp Bug 1675015: Add Windows high contrast support to non-native theme. r=heycam 2020-11-17 20:53:01 +00:00
nsNativeBasicThemeWin.h Bug 1675015: Add Windows high contrast support to non-native theme. r=heycam 2020-11-17 20:53:01 +00:00
nsNativeDragSource.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsNativeDragSource.h
nsNativeDragTarget.cpp Bug 1671526, use DispatchInputEvent for drag events on windows, r=kats 2020-11-02 22:01:21 +00:00
nsNativeDragTarget.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsNativeThemeWin.cpp Backed out changeset 3e90a3759639 (bug 1679208) for scrollbars-no-margin.html failures CLOSED TREE 2020-12-03 01:11:32 +02:00
nsNativeThemeWin.h Backed out changeset 3e90a3759639 (bug 1679208) for scrollbars-no-margin.html failures CLOSED TREE 2020-12-03 01:11:32 +02:00
nsPrintDialogUtil.cpp Bug 1679272 - Include ScopeExit.h exactly where used. r=andi 2020-12-07 14:25:59 +00:00
nsPrintDialogUtil.h Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen 2019-12-09 09:04:29 +00:00
nsPrintDialogWin.cpp Bug 1654088, make WindowWatcher methods to use CStrings and not char and make window.open throw the correct exception, r=farre,geckoview-reviewers,agi* 2020-07-27 21:36:24 +00:00
nsPrintDialogWin.h Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen 2019-12-09 09:04:29 +00:00
nsPrintSettingsServiceWin.cpp Bug 1663940: Ensure the unwriteable margins are populated in the print settings. r=emilio 2020-09-11 15:00:18 +00:00
nsPrintSettingsServiceWin.h Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen 2019-12-09 09:04:29 +00:00
nsPrintSettingsWin.cpp Bug 1668516: Account for orientation when getting paper size from device context in CopyFromNative. r=jwatt 2020-10-01 20:47:39 +00:00
nsPrintSettingsWin.h Bug 1663940: Ensure the unwriteable margins are populated in the print settings. r=emilio 2020-09-11 15:00:18 +00:00
nsPrinterWin.cpp Bug 1677388: Pass a copy of our cached default DEVMODE into DeviceCapabilitiesW calls. r=jfkthame 2020-11-21 09:53:23 +00:00
nsPrinterWin.h Bug 1663652 part 2 - Add combined printerInfo method to nsPrinterCUPS r=emilio 2020-11-03 20:35:38 +00:00
nsSharePicker.cpp Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj 2020-06-23 05:05:36 +00:00
nsSharePicker.h Bug 1573029 - Windows Web Share implementation r=marcosc,farre 2020-02-13 14:21:06 +00:00
nsSound.cpp Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi 2020-09-23 15:17:15 +00:00
nsSound.h
nsToolkit.cpp Bug 1400317 - Use SPI_GETFLATMENU lazily to avoid early Win32k call r=jmathies 2020-06-12 13:31:15 +00:00
nsToolkit.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsUXThemeConstants.h
nsUXThemeData.cpp Bug 1400317 - Win32k Lockdown: Remote IsAppThemed() r=jmathies 2020-06-26 13:16:13 +00:00
nsUXThemeData.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsUserIdleServiceWin.cpp Bug 1651165 - Rename idle service r=Gijs,geckoview-reviewers,snorp 2020-07-20 16:06:59 +00:00
nsUserIdleServiceWin.h Bug 1651165 - Rename idle service r=Gijs,geckoview-reviewers,snorp 2020-07-20 16:06:59 +00:00
nsWidgetFactory.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsWidgetFactory.h
nsWinGesture.cpp
nsWinGesture.h
nsWindow.cpp Bug 1679272 - Include ScopeExit.h exactly where used. r=andi 2020-12-07 14:25:59 +00:00
nsWindow.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsWindowBase.cpp Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan 2020-01-21 09:51:27 +00:00
nsWindowBase.h
nsWindowDbg.cpp
nsWindowDbg.h
nsWindowDefs.h
nsWindowGfx.cpp Bug 1632698 - Better handle device resets when we don't have a GPU process. r=sotaro,kvark,nical 2020-12-07 20:36:11 +00:00
nsWindowGfx.h
nsdefs.h
resource.h
touchinjection_sdk80.h Bug 1630912. Add PT_TOUCHPAD to touchinjection_sdk80.h. r=aklotz 2020-05-08 23:19:38 +00:00
widget.rc