зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1391733 - Update telemetry to provide information about e10s incompatible jaws usage. r=surkov
This commit is contained in:
Родитель
dd679562b1
Коммит
279b9baff2
|
@ -46,8 +46,6 @@ ia2Accessible::QueryInterface(REFIID iid, void** ppv)
|
|||
*ppv = static_cast<IAccessible2_3*>(this);
|
||||
else if (IID_IAccessible2_2 == iid)
|
||||
*ppv = static_cast<IAccessible2_2*>(this);
|
||||
else if (IID_IAccessible2 == iid && !Compatibility::IsIA2Off())
|
||||
*ppv = static_cast<IAccessible2*>(this);
|
||||
|
||||
if (*ppv) {
|
||||
(reinterpret_cast<IUnknown*>(*ppv))->AddRef();
|
||||
|
|
|
@ -139,7 +139,7 @@ Compatibility::Init()
|
|||
|
||||
HMODULE jawsHandle = ::GetModuleHandleW(L"jhook");
|
||||
if (jawsHandle)
|
||||
sConsumers |= (IsModuleVersionLessThan(jawsHandle, 8, 2173)) ?
|
||||
sConsumers |= (IsModuleVersionLessThan(jawsHandle, 18, 4315)) ?
|
||||
OLDJAWS : JAWS;
|
||||
|
||||
if (::GetModuleHandleW(L"gwm32inc"))
|
||||
|
|
|
@ -19,16 +19,16 @@ namespace a11y {
|
|||
class Compatibility
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Return true if IAccessible2 disabled.
|
||||
*/
|
||||
static bool IsIA2Off() { return !!(sConsumers & OLDJAWS); }
|
||||
|
||||
/**
|
||||
* Return true if JAWS mode is enabled.
|
||||
*/
|
||||
static bool IsJAWS() { return !!(sConsumers & (JAWS | OLDJAWS)); }
|
||||
|
||||
/**
|
||||
* Return true if using an e10s incompatible Jaws.
|
||||
*/
|
||||
static bool IsOldJAWS() { return !!(sConsumers & OLDJAWS); }
|
||||
|
||||
/**
|
||||
* Return true if WE mode is enabled.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче