Commit Graph
225 Commits
Author SHA1 Message Date
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
Wes Kocher 5355304e40 Backed out changeset 5c2e089e2163 (bug 1332444) for causing bug 1360402 a=backout
MozReview-Commit-ID: 6JCqiMZePxX
2017-04-27 17:37:00 -07:00
Aaron Klotz 7cc7efbc51 Bug 1310056: Compatibility hack for mitigating RPC_E_CANTCALLOUT_ININPUTSYNCCALL; r=davidb
MozReview-Commit-ID: MralbBmln2
2017-04-20 15:30:28 -06:00
Aaron Klotz c255c53657 Bug 1332444: Backed out changesets 87ee57647e0b and f04c1c83233c for causing bug 1354077; r=backout
MozReview-Commit-ID: Dxu4Oo8sAfc
2017-04-27 16:05:23 -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
Aaron Klotz 40a54b8336 Bug 1322532: Move a11y retrieval of native window handle to DocAccessibleChild; r=yzen
MozReview-Commit-ID: DwLBfAQJkRJ
2017-02-21 11:27:33 -07: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 f31fc251ad Bug 1322532: Move a11y retrieval of native window handle to DocAccessibleChild; r=yzen
MozReview-Commit-ID: DwLBfAQJkRJ
2017-02-21 11:27:33 -07: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
Trevor Saunders 67d9b07b43 bug 1351475 - allow the windows ProxyDestroyed() function to called with a proxy with no wrapper.
unfortunately because creating a DocAccessibleParent is not atomic one can be
created by AllocPDocAccessible(), but then RecvPDocAccessibleConstructor() can
fail.  If that happens we will call actor destroyed on the new
DocAccessibleParent, however because the constructor messaged failed it will
not have a wrapper.  That means this assert does not necessarily hold.
2017-03-29 15:32:28 -04:00
Aaron Klotz aca9ee2a08 Bug 1346967: Generate metadata for all three ISimpleDOM interfaces via a single combined run of MIDL; r=tbsaunde
MozReview-Commit-ID: DGgXSbISujv
2017-03-13 16:39:28 -06:00
Yura Zenevich c744e9f5bf Bug 1339779 - bail early if ipcDoc is not yet created. r=tbsaunde
MozReview-Commit-ID: 1Wm6n7zba35
2017-02-25 17:18:30 -05:00
Yura Zenevich b048a3ab71 Bug 1340284 - remove JAWS condition when retrieving IAccessibleApplication in ServiceProvider. r=tbsaunde
MozReview-Commit-ID: DPNyntCPjoZ
2017-02-17 11:12:16 -05:00
Yura Zenevich d02dc625e5 Bug 1206711 - pass emulated window proxy to doc accessible child to be used as parent IAccessible for top level documents. r=tbsaunde
MozReview-Commit-ID: 4ejD6OmNgiR
2017-02-10 08:11:29 -05:00
Yura Zenevich bcfa510a8c Bug 1337047 - bail early when trying to get document's native window if TabChild is not available for its IPC document. r=tbsaunde
MozReview-Commit-ID: ENSF8ZG2L0O
2017-02-07 14:39:26 -05:00
Eitan Isaacson bb099cbf09 Bug 1335825 - Provide full state bitfield to xpcom accessibles in Windows. r=yzen
MozReview-Commit-ID: H7lFB5khEJm
2017-02-03 15:22:09 -08:00
Boris Zbarsky e7ae250672 Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
Eitan Isaacson f2710109b4 Bug 1335220 - Add minimumIncrement to windows ProxyAccessible. r=yzen
MozReview-Commit-ID: DY89qIALmrq
2017-02-01 12:37:13 -08: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 7cacb219a7 Bug 1329697 - registering typelib for IGeckoCustom interface. r=aklotz
MozReview-Commit-ID: CIvoSrPrRVM
2017-01-25 13:40:17 -05:00
Yura Zenevich a3f8fdd277 Bug 1206711 - add support for HWND emulation for content top level docs on Windows. r=tbsaunde
MozReview-Commit-ID: GQ1LxCwtv3j
2017-01-24 09:45:25 -05: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
Yura Zenevich 293e7597f5 Bug 1269369 - add support for GetID XPCOM method on Windows with e10s. r=tbsaunde
MozReview-Commit-ID: KXhDeNW3Oaw
2017-01-09 14:52:51 -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 61299c80ff bug 1301148 - allow getting a proxy accessible from a com proxy r=aklotz 2017-01-05 10:48:10 -05:00
Trevor Saunders b958e0ab86 bug 1301148 - implement anchor count for windows r=aklotz 2017-01-05 10:48:10 -05:00
Trevor Saunders 1a85ebd84b bug 1301148 - add custom gecko interface r=aklotz, mshal 2017-01-05 10:48:09 -05:00
Xidorn Quan 8de7838e67 Bug 1326209 part 2 - Change background-color to use complex color. r=dholbert
MozReview-Commit-ID: 1n3TC3CVY7U
2016-12-30 02:03:29 +11: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
Ting-Yu Chou 5fab2a878b Bug 1322460 - Don't addref/release on the return value of prohibited functions. r=aklotz,Ehsan
MozReview-Commit-ID: B0mAMZp5sll
2016-12-14 14:34:26 +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 a26a319895 Bug 1320192: Ensure that we return a null native accessible if GetWindow(GW_CHILD) on a windowed plugin fails; r=tbsaunde
MozReview-Commit-ID: 1Fe8xwS3dWc
2016-12-07 09:37:36 -10:00
Aaron Klotz 58b4101093 Bug 1319640: Make obtaining of plugin IAccessible go through Chrome process on Sandboxed builds; r=tbsaunde
MozReview-Commit-ID: DQnOwJ1VpYS
2016-12-03 16:07:24 -07:00
Aaron Klotz 2fbc6daa46 Bug 1319640: Ensure that a11y::ChildrenEnumVariant does not output bad native accessible pointers; r=tbsaunde
MozReview-Commit-ID: l0RDW9zDOo
2016-12-03 15:42:21 -07: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
Trevor Saunders bf23de1c60 bug 1313272 - correctly return the result of ia2AccessibleHyperlink::get_anchor() r=aklotz 2016-10-27 18:11:54 -04:00
Aaron Klotz ab98c9b71c Bug 1310833: Modify PContentParent::SendActivateA11y to accept the content process's MSAA ID as a parameter; r=tbsaunde
MozReview-Commit-ID: DCnYvWQRA5W
2016-10-20 12:34:16 -06:00
Phil Ringnalda 87820057a6 Merge m-c to m-i
MozReview-Commit-ID: 8nqgw9Q3gSY
2016-10-25 22:07:07 -07:00
Alexander Surkov 0b5b4c95d0 Bug 1310794 - implement aria-details and aria-errormessage, r=davidb 2016-10-25 13:51:27 -04:00
Nathan Froyd 70a277546a Bug 1312543 - remove bogus comparison in ia2Accessible.cpp; r=surkov
This comparison is confused, as aNRanges is an out argument; we only
care about non-nullness of the pointer.  Additionally, recent versions
of clang consider non-equality comparisons with pointer types an
error.

MozReview-Commit-ID: 8lXeCwP6Lz6
2016-10-25 10:26:31 -04:00
Aaron Klotz ee97164ba7 Bug 1306400: Remove ChildIDThunk from Windows a11y as it is no longer necessary; r=tbsaunde
MozReview-Commit-ID: JeKsbfYKV58
2016-10-06 13:07:08 -06:00
Aaron Klotz b0e238cba4 Bug 1304449: Part 4 - Change Windows a11y MSAA id generation to partition based on content process id; r=tbsaunde
MozReview-Commit-ID: 1IBkP20uc1f
2016-10-05 15:56:20 -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 1626cd7551 Bug 1304449: Part 1 - Modify MSAA IDs to be partitioned based on content id; r=tbsaunde
MozReview-Commit-ID: AGXtMaLDFGz
2016-10-05 17:52:23 -06:00
Aaron Klotz b34265cd2a Bug 1284314: Fix EnumVariant's QI so that it always resolves the original object's IUnknown; r=tbsaunde
MozReview-Commit-ID: 5XsiJFIdC1Y
2016-08-26 10:04:14 -06:00