gecko-dev/widget
James Teh 6d32b64ab0 Bug 1838123: Update UI Automation client detection to work with modern versions of Windows. r=nlapre,handyman
The window message we previously hooked no longer gets sent and the associated shared memory no longer seems to be created either.
Also, we don't seem to be notified about the load of UIAutomationCore.dll until after it has already instantiated a11y, which is obviously too late for us to hook anything.
Instead, we block UIA instantiation via LazyInstantiator, just as we do for MSAA/IA2:

1. Refactor CompatibilityUIA so that rather than being called by a hook, it simply allows the caller to query the process ids of any UIA clients.
2. CompatibilityUIA now searches handles in our process for named pipes created by UIA for communication with the remote process and then uses GetNamedPipeServerProcessId to get the process id on the other end of each pipe.
3. Refactor LazyInstantiator so that it first tries to get the MSAA/IA2 client process id, then calls CompatibilityUIA to get any UIA client process ids.
4. LazyInstantiator now handles setting the instantiator and blocking of clients for UIA as well as MSAA/IA2 using the same code.
5. Because UIA client detection can be expensive if clients repeatedly query us, cache the result. Reset that cache only when one of our windows comes to the foreground.

Differential Revision: https://phabricator.services.mozilla.com/D181958
2023-07-13 05:25:20 +00:00
..
android Bug 1839582 - Support image paste. r=geckoview-reviewers,owlish 2023-07-11 23:52:39 +00:00
cocoa Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida 2023-07-10 14:26:12 +00:00
crashtests
generic
gtk Bug 1824634 hold GtkIMContext reference a little longer than preedit-changed r=masayuki 2023-07-12 21:38:20 +00:00
headless Bug 1837176 - Convert imports of httpd.js to consume the ES module directly. r=necko-reviewers,webcompat-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,robwu,issammani,bytesized,pbz,valentin 2023-07-12 13:38:34 +00:00
reftests Bug 1828456: Adjust reftest fuzziness for meter-vertical-native-style.html on macOS. r=mac-reviewers,mstange 2023-04-17 18:26:52 +00:00
tests Bug 1838355. Don't translate new lines for IME on Nightly. r=masayuki 2023-07-13 03:21:46 +00:00
uikit Bug 1838460 - Remove unused moz-menubartext color. r=geckoview-reviewers,devtools-reviewers,nchevobbe,amejiamarmol 2023-07-07 15:23:10 +00:00
windows Bug 1838123: Update UI Automation client detection to work with modern versions of Windows. r=nlapre,handyman 2023-07-13 05:25:20 +00:00
x11
BasicEvents.h Bug 1731504 - Explicitly call capturing listeners before bubbling listeners on target. r=smaug 2023-06-06 09:08:14 +00:00
ClipboardWriteRequestChild.cpp Bug 1832701 - Part 2: Add IPCTransferable for clipboard write parameters; r=nika 2023-05-16 21:25:37 +00:00
ClipboardWriteRequestChild.h Bug 1712122 - Part 3: Cancel pending write request when a new write request is made; r=nika,geckoview-reviewers,m_kato 2023-05-14 21:02:08 +00:00
ClipboardWriteRequestParent.cpp Bug 1838593 - Disable diagnostic assert in ClipboardWriteRequestParent for fuzzing; r=decoder 2023-06-15 09:42:08 +00:00
ClipboardWriteRequestParent.h Bug 1832701 - Part 2: Add IPCTransferable for clipboard write parameters; r=nika 2023-05-16 21:25:37 +00:00
ColorScheme.h
CommandList.h Bug 1810663 - Add Gecko specific command to enable new join/split node direction r=smaug,m_kato 2023-03-21 23:58:04 +00:00
CompositorWidget.cpp Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu 2023-01-23 23:58:41 +00:00
CompositorWidget.h
ContentCache.cpp Bug 1841466 - Make `ContentCacheInChild` assert invalid cases with better message r=m_kato 2023-07-07 23:13:20 +00:00
ContentCache.h Bug 1841466 - Make `ContentCacheInChild` assert invalid cases with better message r=m_kato 2023-07-07 23:13:20 +00:00
ContentData.cpp
ContentData.h
ContentEvents.h
DimensionRequest.cpp
DimensionRequest.h
EventClassList.h
EventForwards.h
EventMessageList.h Backed out 9 changesets (bug 1838080, bug 1631263) for causing VideoConduitTest related failures CLOSED TREE 2023-07-09 18:00:05 +03:00
FontRange.h
GfxDriverInfo.cpp Bug 1815481: Disable hardware WebRender on Mesa drivers in Virtual Machines. r=rmader 2023-06-16 20:45:22 +00:00
GfxDriverInfo.h Bug 1815481: Disable hardware WebRender on Mesa drivers in Virtual Machines. r=rmader 2023-06-16 20:45:22 +00:00
GfxInfoBase.cpp Bug 1829063 - Split video overlay feature of software decoded video from nsIGfxInfo::FEATURE_VIDEO_OVERLAY r=gfx-reviewers,lsalzman 2023-06-22 00:21:07 +00:00
GfxInfoBase.h Bug 1805939 - Have a central source of truth for desktop environment detection. r=stransky,jld 2023-01-20 11:26:11 +00:00
GfxInfoCollector.cpp
GfxInfoCollector.h
IMEData.cpp Bug 1832726 - part 1: Make Android widget always dispatch keyboard events during composition r=m_kato,geckoview-reviewers 2023-05-16 22:42:59 +00:00
IMEData.h Bug 1690827 - part 1: Number each composition for native IME or synthesized in the parent process r=smaug 2023-06-14 01:57:33 +00:00
IconLoader.cpp
IconLoader.h
InProcessCompositorWidget.cpp
InProcessCompositorWidget.h
InitData.h Bug 1798697 - Use outside rather than closest pixels for popup sizes, and don't clamp translucent popups. r=tnikkel 2023-01-24 11:24:48 +00:00
InputData.cpp Bug 1837832 - Change parameter types from T to Coord where appropriate in the remainder of the BasePoint interface r=botond 2023-06-16 18:04:23 +00:00
InputData.h Bug 1775062 - Implement ipdl reads without needing default ctors. r=nika 2023-02-04 11:12:36 +00:00
LSBUtils.cpp Bug 1819311 - Collect errors on process launch r=nika,geckoview-reviewers,owlish 2023-04-13 08:35:24 +00:00
LSBUtils.h
LookAndFeel.h Bug 1831841 - Remove dead GTK menu styling code. r=dao,stransky 2023-05-11 08:57:11 +00:00
LookAndFeelTypes.ipdlh Bug 1804657 - Remove dead code related to having native theme in content on Linux. r=stransky 2023-06-01 07:37:33 +00:00
MediaKeysEventSourceFactory.h
MiscEvents.h
MouseEvents.h Bug 1817723 - Allow HTMLEditor can receive events when the focus is switched between elements in the same shadow tree. r=masayuki 2023-07-07 14:55:28 +00:00
NativeKeyBindingsType.h
NativeKeyToDOMCodeName.h
NativeKeyToDOMKeyName.h
NativeMenu.h Bug 1831760 - Use a native popup menu for positioned popups on Mac. r=dao,mstange 2023-05-18 05:51:19 +00:00
NativeMenuSupport.h
PClipboardWriteRequest.ipdl Bug 1832701 - Part 2: Add IPCTransferable for clipboard write parameters; r=nika 2023-05-16 21:25:37 +00:00
PrintBackgroundTask.h
PuppetBidiKeyboard.cpp
PuppetBidiKeyboard.h
PuppetWidget.cpp Bug 1690827 - part 1: Number each composition for native IME or synthesized in the parent process r=smaug 2023-06-14 01:57:33 +00:00
PuppetWidget.h Bug 1834042 - Make nsWindow::ConstrainPosition account for decorations. r=stransky 2023-05-23 10:30:05 +00:00
RemoteLookAndFeel.cpp Bug 1804657 - Remove dead code related to having native theme in content on Linux. r=stransky 2023-06-01 07:37:33 +00:00
RemoteLookAndFeel.h
Screen.cpp
Screen.h
ScreenManager.cpp Bug 1812938 - Part 1. GetWidgetScreen returns Screen instead of nsIScreen. r=emilio,geckoview-reviewers,owlish 2023-02-06 04:51:26 +00:00
ScreenManager.h Bug 1812938 - Part 1. GetWidgetScreen returns Screen instead of nsIScreen. r=emilio,geckoview-reviewers,owlish 2023-02-06 04:51:26 +00:00
ScrollbarDrawing.cpp Bug 1812868 - Tweak scrollbar scaling set-up. r=mstange 2023-02-20 00:01:12 +01:00
ScrollbarDrawing.h Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingAndroid.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingAndroid.h Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingCocoa.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingCocoa.h Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingGTK.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingGTK.h
ScrollbarDrawingWin.cpp Bug 1833403 - Simplify some appearance code. r=stransky,mac-reviewers,handyman,devtools-reviewers,mstange 2023-05-24 11:13:58 +00:00
ScrollbarDrawingWin.h
ScrollbarDrawingWin11.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ScrollbarDrawingWin11.h Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
SharedWidgetUtils.cpp
SwipeTracker.cpp Bug 1837226 part 2: Upgrade some assertions to be release assertions in SwipeTracker.cpp. r=hiro 2023-06-07 22:02:29 +00:00
SwipeTracker.h
SystemTimeConverter.h
TextEventDispatcher.cpp
TextEventDispatcher.h
TextEventDispatcherListener.h
TextEvents.h Bug 1832306 - Make `BrowserParent` stop handling access keys with delayed events r=smaug,NeilDeakin 2023-06-15 13:33:19 +00:00
TextRange.h
TextRecognition.cpp
TextRecognition.h
Theme.cpp Bug 1802687 - Account for direction:rtl in vertical writing-mode <input type=range> controls. r=emilio 2023-07-08 13:19:45 +00:00
Theme.h Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ThemeChangeKind.h
ThemeCocoa.cpp Bug 1813046 - Simplify scrollbar sizing code. r=spohl 2023-01-28 21:35:51 +00:00
ThemeCocoa.h
ThemeColors.cpp
ThemeColors.h
ThemeDrawing.cpp
ThemeDrawing.h
TouchEvents.h Bug 1775062 - Implement ipdl reads without needing default ctors. r=nika 2023-02-04 11:12:36 +00:00
TouchResampler.cpp
TouchResampler.h
VsyncDispatcher.cpp Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
VsyncDispatcher.h
WidgetEventImpl.cpp Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
WidgetMessageUtils.h Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu 2023-01-23 23:58:41 +00:00
WidgetTraceEvent.h
WidgetUtils.cpp
WidgetUtils.h
WindowButtonType.h
WindowOcclusionState.h
components.conf
moz.build Bug 1804657 - Remove dead code related to having native theme in content on Linux. r=stransky 2023-06-01 07:37:33 +00:00
nsAppShellSingleton.h
nsAutoRollup.cpp
nsAutoRollup.h
nsBaseAppShell.cpp
nsBaseAppShell.h
nsBaseClipboard.cpp Bug 1829148 - Update MOZ_DIAGNOSTIC_ASSERT for mIgnoreEmptyNotification; r=cmartin 2023-07-10 19:59:54 +00:00
nsBaseClipboard.h Bug 1810850 - Part 4: Refactor around nsBase::ClipboardEmptyClipboard; r=cmartin,mstange 2023-06-26 21:02:40 +00:00
nsBaseDragService.cpp Bug 1825825 - Simplify NAC setup. r=smaug 2023-04-05 09:19:15 +00:00
nsBaseDragService.h Bug 1824986 - Use element more in popup manager code. r=mstange 2023-03-28 14:33:19 +00:00
nsBaseFilePicker.cpp Bug 1838244 - [1/1] Resolve special directory paths in the parent process r=gstoll 2023-06-15 20:04:06 +00:00
nsBaseFilePicker.h Bug 1838244 - [1/1] Resolve special directory paths in the parent process r=gstoll 2023-06-15 20:04:06 +00:00
nsBaseWidget.cpp Bug 1839198 - Skip processing swipe-to-navigation stuff in PiP windows. r=botond,pip-reviewers,mconley 2023-06-27 21:20:08 +00:00
nsBaseWidget.h Bug 1839198 - Move mIsPIPWindow into nsBaseWidget. r=botond 2023-06-27 21:20:08 +00:00
nsCUPSShim.cpp
nsCUPSShim.h
nsClipboardHelper.cpp Bug 1835119 - Remove nsCOMPtr_base. r=xpcom-reviewers,kmag 2023-05-31 21:58:43 +00:00
nsClipboardHelper.h
nsClipboardProxy.cpp Bug 1832701 - Part 2: Add IPCTransferable for clipboard write parameters; r=nika 2023-05-16 21:25:37 +00:00
nsClipboardProxy.h Bug 1712122 - Part 3: Cancel pending write request when a new write request is made; r=nika,geckoview-reviewers,m_kato 2023-05-14 21:02:08 +00:00
nsColorPickerProxy.cpp Bug 1816740 [6/6] - remove ManualDealloc from ColorPicker and FilePicker r=ipc-reviewers,nika 2023-02-22 21:05:25 +00:00
nsColorPickerProxy.h
nsContentProcessWidgetFactory.h
nsDeviceContextSpecProxy.cpp Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida 2023-07-10 14:26:12 +00:00
nsDeviceContextSpecProxy.h Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida 2023-07-10 14:26:12 +00:00
nsDragServiceProxy.cpp Bug 1832701 - Part 1: Rename IPCDataTransfer* to IPCTransferable*; r=nika 2023-05-16 21:25:37 +00:00
nsDragServiceProxy.h
nsFilePickerProxy.cpp Bug 1838244 - [1/1] Resolve special directory paths in the parent process r=gstoll 2023-06-15 20:04:06 +00:00
nsFilePickerProxy.h Bug 1838244 - [1/1] Resolve special directory paths in the parent process r=gstoll 2023-06-15 20:04:06 +00:00
nsGUIEventIPC.h Bug 1835577 - Get rid of `typedef`s in nsGUIEventIPC.h r=edgar 2023-06-14 01:57:34 +00:00
nsHTMLFormatConverter.cpp Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
nsHTMLFormatConverter.h
nsIAppShell.idl
nsIApplicationChooser.idl
nsIBaseWindow.cpp
nsIBaseWindow.idl
nsIBidiKeyboard.idl
nsIClipboard.idl Bug 1712122 - Part 3: Cancel pending write request when a new write request is made; r=nika,geckoview-reviewers,m_kato 2023-05-14 21:02:08 +00:00
nsIClipboardHelper.idl
nsIClipboardOwner.idl
nsIColorPicker.idl
nsIDeviceContextSpec.cpp
nsIDeviceContextSpec.h Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert,geckoview-reviewers,jonalmeida 2023-07-10 14:26:12 +00:00
nsIDisplayInfo.idl
nsIDragService.idl Bug 1820972 - Make `nsBaseDragService::FireDragEventAtSource` update `mSourceNode` if it's disconnected while `HTMLEditor` deletes selection caused by a drag operation r=edgar 2023-03-16 06:37:18 +00:00
nsIDragSession.idl Bug 1809122 - Track top-level window context in DragSession; r=smaug 2023-02-13 18:44:04 +00:00
nsIFilePicker.idl Bug 1818500 - Fix serialization of nsIFilePicker::Mode. r=ipc-reviewers,mccr8 a=RyanVM 2023-02-23 14:33:57 +00:00
nsIFormatConverter.idl
nsIGfxInfo.idl Bug 1829063 - Split video overlay feature of software decoded video from nsIGfxInfo::FEATURE_VIDEO_OVERLAY r=gfx-reviewers,lsalzman 2023-06-22 00:21:07 +00:00
nsIGfxInfoDebug.idl Bug 1828192 [Linux] Run glxtest directly from GfxInfo::GetData() in case we're missing glx test data r=emilio 2023-04-20 08:54:17 +00:00
nsIGtkTaskbarProgress.idl
nsIJumpListBuilder.idl
nsIJumpListItem.idl
nsIMacDockSupport.idl
nsIMacFinderProgress.idl
nsIMacSharingService.idl
nsIMacUserActivityUpdater.idl
nsIMacWebAppUtils.idl
nsIPaper.idl
nsIPaperMargin.idl
nsIPrintDialogService.idl
nsIPrintSettings.idl Bug 1793220 - Use at-page size rule as paper size when printing to PDF r=dholbert,AlaskanEmily 2023-02-27 20:22:18 +00:00
nsIPrintSettingsService.idl
nsIPrintSettingsWin.idl
nsIPrinter.idl
nsIPrinterList.idl
nsIRollupListener.h Bug 1811486 - Don't animate popups rolled-up on minimized windows. r=stransky 2023-01-25 11:37:46 +00:00
nsIScreen.idl
nsIScreenManager.idl
nsISharePicker.idl
nsISound.idl
nsIStandaloneNativeMenu.idl
nsISystemStatusBar.idl
nsITaskbarOverlayIconController.idl
nsITaskbarPreview.idl
nsITaskbarPreviewButton.idl
nsITaskbarPreviewController.idl
nsITaskbarProgress.idl
nsITaskbarTabPreview.idl
nsITaskbarWindowPreview.idl
nsITouchBarHelper.idl Bug 1680865 - Unfocusing Urlbar after any touchbar input. r=dao 2023-04-06 12:37:54 +00:00
nsITouchBarInput.idl
nsITouchBarUpdater.idl
nsITransferable.idl Bug 1808146 - When creating a file promise for images, remember the referrer. r=nika 2023-03-22 21:55:08 +00:00
nsIUserIdleService.idl
nsIUserIdleServiceInternal.idl
nsIWidget.h Bug 1834042 - Expose screen edge slop to chrome code. r=stransky,webidl,smaug 2023-05-30 09:43:59 +00:00
nsIWidgetListener.cpp Bug 1823284 - Use `SizeModeChanged` notification to handle fullscreen change; r=geckoview-reviewers,rkraesig,stransky,bradwerth,smaug,m_kato 2023-04-23 21:28:43 +00:00
nsIWidgetListener.h Bug 1823284 - Use `SizeModeChanged` notification to handle fullscreen change; r=geckoview-reviewers,rkraesig,stransky,bradwerth,smaug,m_kato 2023-04-23 21:28:43 +00:00
nsIWinTaskbar.idl Bug 1810487 - Remove unused JS-exposed nsIWinTaskbar.prepareFullScreen. r=rkraesig 2023-01-16 17:30:08 +00:00
nsIWindowsUIUtils.idl
nsNativeTheme.cpp Bug 1839922 - Remove usage of {Has,Get}Attr(kNameSpaceID_None, ..). r=edgar 2023-06-23 10:01:32 +00:00
nsNativeTheme.h
nsPaper.cpp
nsPaper.h
nsPaperMargin.cpp
nsPaperMargin.h
nsPrimitiveHelpers.cpp Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
nsPrimitiveHelpers.h Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
nsPrintSettingsImpl.cpp Bug 1793220 - Use at-page size rule as paper size when printing to PDF r=dholbert,AlaskanEmily 2023-02-27 20:22:18 +00:00
nsPrintSettingsImpl.h Bug 1793220 - Use at-page size rule as paper size when printing to PDF r=dholbert,AlaskanEmily 2023-02-27 20:22:18 +00:00
nsPrintSettingsService.cpp Bug 1840485 - Change the type of BaseMargin::{top,right,bottom,left} to Coord. r=botond 2023-07-01 02:23:21 +00:00
nsPrintSettingsService.h
nsPrinterBase.cpp
nsPrinterBase.h
nsPrinterCUPS.cpp Bug 1724649 - Followup to remove #include plstr.h r=necko-reviewers,xpcom-reviewers,valentin,nika 2023-05-15 14:53:02 +00:00
nsPrinterCUPS.h Bug 1826872 Part 2 - Move CUPS printer dest into CUPSPrinterInfo for nsPrinterCUPS r=dholbert 2023-04-10 21:11:28 +00:00
nsPrinterListBase.cpp
nsPrinterListBase.h
nsPrinterListCUPS.cpp Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato 2023-04-01 08:31:12 +00:00
nsPrinterListCUPS.h
nsSoundProxy.cpp
nsSoundProxy.h
nsTransferable.cpp Bug 1808146 - When creating a file promise for images, remember the referrer. r=nika 2023-03-22 21:55:08 +00:00
nsTransferable.h Bug 1808146 - When creating a file promise for images, remember the referrer. r=nika 2023-03-22 21:55:08 +00:00
nsUserIdleService.cpp Bug 1836980 - Move the check for late instantiation to UserIdleService[type] specializations. r=kmag,xpcom-reviewers,geckoview-reviewers,m_kato 2023-06-07 06:27:52 +00:00
nsUserIdleService.h Bug 1834556 - Have a shutdown blocker for the UserIdleService that disables it during shutdown. r=xpcom-reviewers,kmag 2023-06-05 08:06:33 +00:00
nsWidgetsCID.h
nsXPLookAndFeel.cpp Bug 1838460 - Remove unused moz-menubartext color. r=geckoview-reviewers,devtools-reviewers,nchevobbe,amejiamarmol 2023-07-07 15:23:10 +00:00
nsXPLookAndFeel.h Bug 1804657 - Remove dead code related to having native theme in content on Linux. r=stransky 2023-06-01 07:37:33 +00:00