Commit Graph
94 Commits
Author SHA1 Message Date
Aaron Klotz bf31fe77a2 Bug 1379951: Remove problematic assertion for a code path that is expected to be followed by NVDA; r=eeejay
MozReview-Commit-ID: DM6hVlC4RCg
2017-07-21 10:42:39 -06:00
Sylvestre Ledru 9d4a84d778 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Aaron Klotz eafbcda22c Bug 1367715: Check for IClientSecurity in a11y QueryInterface implementations; r=surkov
MozReview-Commit-ID: FwGEq5GLom1
2017-05-31 16:07:30 -06:00
Aaron Klotz b48d95c103 Bug 1365073: Modify sdnAccessible to always generate unique IDs using AccessibleWrap's scheme even when it is not associated with an accessible; r=tbsaunde
MozReview-Commit-ID: 8uhDATEKfQ
2017-05-15 17:28:57 -06:00
Aaron Klotz 9249a6b70a Bug 1361879: Ensure that sdnAccessible holds a strong reference to its creating AccessibleWrap if it was instantiated as a tearoff; r=tbsaunde
MozReview-Commit-ID: CCgwa7BHUBK
2017-05-23 14:40:04 -06:00
Aaron Klotz 210b13cbb8 Bug 1364544: Ensure that proxied CARET_MOVED and FOCUS events update the Win32 system caret before firing their WinEvents; r=eeejay
MozReview-Commit-ID: LVML7EZaSYD

In non-e10s AccessibleWrap::HandleAccEvent, we special case our handling of
CARET_MOVED and FOCUS events with a call to UpdateSystemCaretFor. In e10s mode
we were not doing the same thing for proxied events sent from content. This
threw JAWS for a loop and presumably messes up other ATs as well.

This patch modifies the IPDL messages for these two events so that we may
send the caret rect along with the event, thus allowing us to update the
system caret for proxied events as well.
2017-05-15 14:11:46 -06:00
Aaron Klotz 3fab1a1bab Bug 1363887: Use nsAutoHandle for CreateBitmap call in AccessibleWrap::UpdateSystemCaretFor; r=tbsaunde
MozReview-Commit-ID: CbLqtqMEw32
2017-05-10 16:04:05 -06:00
Aaron Klotz a0a37a918c Bug 1322532: Platform a11y changes to enable handler-based live regions; r=tbsaunde
MozReview-Commit-ID: nNPvBy3ZGO
2017-04-13 20:35:32 -06:00
Wes Kocher ac93ad29fd Backed out 4 changesets (bug 1322532) for windows static build failures a=backout
Backed out changeset df4e3ee037d6 (bug 1322532)
Backed out changeset 0acfde7a7a45 (bug 1322532)
Backed out changeset 34bf061d8e29 (bug 1322532)
Backed out changeset 954ea82470ed (bug 1322532)
2017-04-14 00:02:40 -07:00
Aaron Klotz d5d0889167 Bug 1322532: Platform a11y changes to enable handler-based live regions; r=tbsaunde
MozReview-Commit-ID: nNPvBy3ZGO
2017-04-13 20:35:32 -06:00
Aaron Klotz f9d4c14477 Bug 1303060: Changes to a11y to enable the serving of a COM handler; r=tbsaunde
MozReview-Commit-ID: GTQF3x1pBtX

A general outline of the COM handler (a.k.a. the "smart proxy"):

COM handlers are pieces of code that are loaded by the COM runtime along with
a proxy and are layered above that proxy. This enables the COM handler to
interpose itself between the caller and the proxy, thus providing the
opportunity for the handler to manipulate an interface's method calls before
those calls reach the proxy.

Handlers are regular COM components that live in DLLs and are declared in the
Windows registry. In order to allow for the specifying of a handler (and an
optional payload to be sent with the proxy), the mscom library allows its
clients to specify an implementation of the IHandlerProvider interface.

IHandlerProvider consists of 5 functions:

* GetHandler returns the CLSID of the component that should be loaded into
  the COM client's process. If GetHandler returns a failure code, then no
  handler is loaded.
* GetHandlerPayloadSize and WriteHandlerPayload are for obtaining the payload
  data. These calls are made on a background thread but need to do their work
  on the main thread. We declare the payload struct in IDL. MIDL generates two
  functions, IA2Payload_Encode and IA2Payload_Decode, which are used by
  mscom::StructToStream to read and write that struct to and from buffers.
* The a11y payload struct also includes an interface, IGeckoBackChannel, that
  allows the handler to communicate directly with Gecko. IGeckoBackChannel
  currently provides two methods: one to allow the handler to request fresh
  cache information, and the other to provide Gecko with its IHandlerControl
  interface.
* MarshalAs accepts an IID that specifies the interface that is about to be
  proxied. We may want to send a more sophisticated proxy than the one that
  is requested. The desired IID is returned by this function. In the case of
  a11y interfaces, we should always return IAccessible2_3 if we are asked for
  one of its parent interfaces. This allows us to eliminate round trips to
  resolve more sophisticated interfaces later on.
* NewInstance, which is needed to ensure that all descendent proxies are also
  imbued with the same handler code.

The main focus of this patch is as follows:

1. Provide an implementation of the IHandlerProvider interface;
2. Populate the handler payload (ie, the cache) with data;
3. Modify CreateHolderFromAccessible to specify the HandlerPayload object;
4. Receive the IHandlerControl interface from the handler DLL and move it
   into the chrome process.

Some more information about IHandlerControl:

There is one IHandlerControl per handler DLL instance. It is the interface that
we call in Gecko when we need to dispatch an event to the handler. In order to
ensure that events are dispatched in the correct order, we need to dispatch
those events from the chrome main thread so that they occur in sequential order
with calls to NotifyWinEvent.
2017-04-04 15:23:55 -06:00
Yura Zenevich 477426b162 Bug 1206711 - ensure that emulation is taken into account when resolving HWND for a proxy. r=tbsaunde
MozReview-Commit-ID: DSRUOMUe5nW
2017-01-31 11:58:44 -05:00
Yura Zenevich ca1703bb7f Bug 1333406 - make GetProxyAccessibleInSubtree deal with proxies in non top level documents. r=tbsaunde
MozReview-Commit-ID: GYmUr72NbNS
2017-01-27 18:06:07 -05:00
Eitan Isaacson 6fb603403a Bug 1334332 - Fix GetIAccessibleFor to support returning IAccessible for itself. r=tbsaunde
MozReview-Commit-ID: 3zpNFjs0wHL
2017-01-27 13:41:32 -08:00
Yura Zenevich 61baf29ce3 Bug 1332444 - adding comment when calling GetRemoteIAccessible. r=tbsaunde
MozReview-Commit-ID: 1GSNrmXuacw
2017-01-24 09:34:09 -05:00
Yura Zenevich 32b8f22350 Bug 1332444 - only call GetRemoteIAccessible on non-proxies that have a child id pointing in content documents. r=tbsaunde
MozReview-Commit-ID: 6GUitjnFaiF
2017-01-24 09:25:21 -05:00
Trevor Saunders e60082e201 bug 1240893 - ensure accessibles are shutdown before their document r=davidb, smaug 2017-01-19 17:18:39 -05:00
Aaron Klotz c3674a644a Bug 1323055: Remove A11Y_TRYBLOCK_* from Windows a11y code; r=tbsaunde
MozReview-Commit-ID: L3BBWaz004h
2016-12-20 13:41:24 -07:00
Trevor Saunders 1a85ebd84b bug 1301148 - add custom gecko interface r=aklotz, mshal 2017-01-05 10:48:09 -05:00
Ting-Yu Chou 63910c9baa Bug 1322465 part 1 - Use explicit/MOZ_IMPLICIT for the unary constructors in accessible/. r=Ehsan
MozReview-Commit-ID: ItoYyiF1Vjo
2016-12-16 15:43:21 +08:00
Yura Zenevich 5dd3d4ec2e Bug 1206711 - always use DocAccessibleWrap to get native window. r=tbsaunde
MozReview-Commit-ID: 781YRcZdFWa
2016-12-19 17:31:50 -05:00
Aaron Klotz cf2d0c973c Bug 1312046: Add check for null COM proxy to GetProxiedAccessibleInSubtree; r=tbsaunde
MozReview-Commit-ID: 3z7OcBPPrK5
2016-11-01 16:26:25 -06:00
Aaron Klotz f60c1a054e Bug 1304449: Part 3 - Modify AccessibleWrap to traverse using COM interfaces; r=tbsaunde
MozReview-Commit-ID: Ctimi1xHsj
2016-10-05 17:52:35 -06:00
Aaron Klotz 9eb5534178 Bug 1297549: Part 3 - Modify Windows AccessibleWrap to get hwnd from TabChild under e10s; r=tbsaunde
MozReview-Commit-ID: 1E7RZmlPzRj
2016-09-06 11:27:24 -06:00
Aaron Klotz f101601639 Bug 1297549: Part 1 - Use chrome-generated MSAA IDs in content; r=tbsaunde
MozReview-Commit-ID: 7YIx7f6KEOs
2016-09-19 13:58:15 -06:00
Phil Ringnalda 358ded6d7b Backed out changeset 5643f6aebe25 (bug 1297549) for talos bustage 2016-09-18 11:19:00 -07:00
Phil Ringnalda 92f8f4253a Backed out changeset 1970274b8890 (bug 1297549) for talos bustage 2016-09-18 11:12:59 -07:00
Aaron Klotz 1dc5091c13 Bug 1297549: Part 3 - Modify Windows AccessibleWrap to get hwnd from TabChild under e10s; r=tbsaunde
MozReview-Commit-ID: DjnzVn0K5n1
2016-09-06 11:27:24 -06:00
Aaron Klotz 7f6b2607b4 Bug 1297549: Part 1 - Use chrome-generated MSAA IDs in content; r=tbsaunde
MozReview-Commit-ID: 7YIx7f6KEOs
2016-09-16 12:17:05 -06:00
Wes Kocher 51b0f434ae Backed out 3 changesets (bug 1297549) for Windows VM Mn-e10s failures a=backout
Backed out changeset c3f82cedfb27 (bug 1297549)
Backed out changeset c643278d88c8 (bug 1297549)
Backed out changeset 3d515669d3e0 (bug 1297549)
2016-09-15 16:45:31 -07:00
Aaron Klotz 3ffd3ed130 Bug 1300858: Make AccessibleWrap::accSelect dispatch TakeFocus() call to main thread when running in Windows e10s content process; r=tbsaunde
MozReview-Commit-ID: 5fQJbx65s3z
2016-09-07 14:48:00 -06:00
Aaron Klotz 27b1dfe58a Bug 1297549: Part 3 - Modify Windows AccessibleWrap to get hwnd from TabChild under e10s; r=tbsaunde
MozReview-Commit-ID: Jn2f9EAtT8O
2016-09-06 11:27:24 -06:00
Aaron Klotz d05039b658 Bug 1297549: Part 1 - Use chrome-generated MSAA IDs in content; r=tbsaunde
MozReview-Commit-ID: 7YIx7f6KEOs
2016-09-15 13:25:04 -06:00
Trevor Saunders 7db4de8140 bug 1296942 - AccessibleWrap::GetXPAccessibleFor() should check there is a child at an index before returning it r=davidb 2016-08-26 11:16:21 -04:00
Aaron Klotz 204edb29e9 Bug 1272146: Add thunk for IAccessible property accesses that pass non-self child IDs; r=tbsaunde
MozReview-Commit-ID: Kx8UVGP2q7h
2016-08-18 00:50:03 -06:00
Aaron Klotz 0f04f02864 Bug 1268544: Remove proxy-specific code paths from IAccessible and IA2 wrappers; r=tbsaunde
MozReview-Commit-ID: J2LxsDU7trH
2016-07-22 14:20:42 -06:00
Sebastian Hengst 69e7d1159d Backed out changeset 9912f206b678 (bug 1268544) 2016-08-19 10:02:28 +02:00
Sebastian Hengst 2e1c3db87b Backed out changeset d84b4dd26a40 (bug 1272146) 2016-08-19 10:02:11 +02:00
Aaron Klotz d1a97e4d1b Bug 1272146: Add thunk for IAccessible property accesses that pass non-self child IDs; r=tbsaunde
MozReview-Commit-ID: Kx8UVGP2q7h
2016-08-18 00:50:03 -06:00
Aaron Klotz 106e093112 Bug 1268544: Remove proxy-specific code paths from IAccessible and IA2 wrappers; r=tbsaunde
MozReview-Commit-ID: J2LxsDU7trH
2016-07-22 14:20:42 -06:00
Phil Ringnalda 438115d5f1 Backed out 6 changesets (bug 1288841, bug 1268544) for causing Win7 e10s Marionette to fail in test_import_script.py TestImportScriptContent.test_imports_apply_globally
Backed out changeset c9f49a119255 (bug 1288841)
Backed out changeset a9d43e83e070 (bug 1268544)
Backed out changeset d898178a0809 (bug 1268544)
Backed out changeset 4887b4164dd9 (bug 1268544)
Backed out changeset 7c3a5a770cae (bug 1268544)
Backed out changeset 12aa15cf5879 (bug 1268544)
2016-08-18 00:30:21 -07:00
Aaron Klotz 3cac743d67 Bug 1268544: Remove proxy-specific code paths from IAccessible and IA2 wrappers; r=tbsaunde
MozReview-Commit-ID: J2LxsDU7trH
2016-07-22 14:20:42 -06:00
Wes Kocher c4a744687d Backed out changesets e4a39e456f89 (bug 1268544) for mass build bustage a=backout CLOSED TREE
***
Backed out changeset 119a4b187938 (bug 1268544)
***
Backed out changeset d83cba382cfe (bug 1268544)
***
Backed out changeset a0085eb5ffe7 (bug 1268544)
***
Backed out changeset eefa457c3680 (bug 1288843)
***
Backed out changeset 17dc46beb1a5 (bug 1288841)
***
Backed out changeset e76f58f328d4 (bug 1268544)
***
Backed out changeset ffc8ee715fdb (bug 1268544)
***
Backed out changeset 99f0ea19b8f5 (bug 1268544)
***
Backed out changeset 2bdfb9514317 (bug 1268544)
***
Backed out changeset e4b3a5e1756d (bug 1268544)
2016-08-15 15:58:45 -07:00
Aaron Klotz 40ba7513e6 Bug 1268544: Remove proxy-specific code paths from IAccessible and IA2 wrappers; r=tbsaunde
MozReview-Commit-ID: J2LxsDU7trH
2016-07-22 14:20:42 -06:00
Jonathan Watt 947f9705a7 Bug 1263785 - Kill off the deprecated nsINode::GetCurrentDoc. r=baku 2016-03-31 12:46:32 +01:00