mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-07 09:13:12 +00:00
Bug 1330460 - Unblock parts of TIPMessageHandler in order to block a11y on Win 8+ 64-bit touchscreens. a=aklotz
This commit is contained in:
parent
696316371e
commit
09112025cd
@ -380,7 +380,7 @@ static bool gIsPointerEventsEnabled = false;
|
||||
// coordinate this many milliseconds:
|
||||
#define HITTEST_CACHE_LIFETIME_MS 50
|
||||
|
||||
#if defined(ACCESSIBILITY) && defined(_M_IX86)
|
||||
#if defined(ACCESSIBILITY)
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
@ -535,7 +535,8 @@ private:
|
||||
// We don't want to handle this unless the message is a WM_GETOBJECT that we
|
||||
// want to block, and the aHwnd is a nsWindow that belongs to the current
|
||||
// thread.
|
||||
if (!aMsgResult || aMsgCode != WM_GETOBJECT || aLParam != OBJID_CLIENT ||
|
||||
if (!aMsgResult || aMsgCode != WM_GETOBJECT ||
|
||||
static_cast<DWORD>(aLParam) != OBJID_CLIENT ||
|
||||
!WinUtils::GetNSWindowPtr(aHwnd) ||
|
||||
::GetWindowThreadProcessId(aHwnd, nullptr) != ::GetCurrentThreadId() ||
|
||||
!IsA11yBlocked()) {
|
||||
@ -569,7 +570,7 @@ StaticAutoPtr<TIPMessageHandler> TIPMessageHandler::sInstance;
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif // defined(ACCESSIBILITY) && defined(_M_IX86)
|
||||
#endif // defined(ACCESSIBILITY)
|
||||
|
||||
/**************************************************************
|
||||
**************************************************************
|
||||
@ -647,9 +648,9 @@ nsWindow::nsWindow()
|
||||
// WinTaskbar.cpp for details.
|
||||
mozilla::widget::WinTaskbar::RegisterAppUserModelID();
|
||||
KeyboardLayout::GetInstance()->OnLayoutChange(::GetKeyboardLayout(0));
|
||||
#if defined(ACCESSIBILITY) && defined(_M_IX86)
|
||||
#if defined(ACCESSIBILITY)
|
||||
mozilla::TIPMessageHandler::Initialize();
|
||||
#endif // defined(ACCESSIBILITY) && defined(_M_IX86)
|
||||
#endif // defined(ACCESSIBILITY)
|
||||
IMEHandler::Initialize();
|
||||
if (SUCCEEDED(::OleInitialize(nullptr))) {
|
||||
sIsOleInitialized = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user