Commit Graph

6748 Commits

Author SHA1 Message Date
Jessica Jong
1133de96d2 Bug 1398981 - Turn off webcomponents pref by default when running tests. r=smaug 2018-01-05 16:17:38 +08:00
Mark Banner
57d6ae5770 Bug 1427754 - Enable ESLint rule mozilla/use-services for accessible/ r=surkov
MozReview-Commit-ID: EJoFyhMfQzv

--HG--
extra : rebase_source : e31bd656aded8dae312e891ce9422bff575c76dc
2018-01-03 15:26:19 +00:00
Emilio Cobos Álvarez
47cf299a8b Bug 1427825: Make accessibility use the flattened tree more consistently. r=surkov
MozReview-Commit-ID: 4mFkvqheZOK

--HG--
extra : rebase_source : 34eb8dd0b20295e4f92e3bd2ec827a401b0d3f61
2018-01-03 19:59:16 +01:00
Andrea Marchesini
a861feff81 Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=me 2018-01-03 14:04:09 +01:00
Andrea Marchesini
00e79ef07b Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Samuel Thibault
c0761188e0 Bug 1426868 - Check that child document still exists after parent processing r=surkov 2017-12-23 08:15:00 +02:00
Emilio Cobos Álvarez
c8eb630ebe Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ffdf5d2cb5 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Eitan Isaacson
33a8bfe01f Bug 1405796 - Don't traverse into relocated children in scoped TreeWalker. r=surkov 2017-12-22 11:25:00 -05:00
Cameron McCormack
8731df3c34 Bug 1427512 - Part 29: Remove nsIDOMCSSDeclaration. r=xidorn,jryans,bz
This removes the .style attribute from nsIDOMSVGElement, but there
shouldn't be any users of that.

MozReview-Commit-ID: LOBSFo85Utn
2018-01-11 16:17:57 +08:00
Cameron McCormack
66141a0c03 Bug 1427512 - Part 27: Remove nsIDOMCSSPrimitiveValue. r=xidorn,bz
MozReview-Commit-ID: IcGKAjPWacZ
2018-01-11 16:17:57 +08:00
Dorel Luca
1f8556b8e1 Backed out changeset 47637ccbabfd (bug 1396478) for leaks on a newly-added accessability test on a CLOSED TREE
--HG--
extra : amend_source : b2adf4c4a3158863d344c79961836f3d951f6ac7
2017-12-21 23:27:27 +02:00
Samuel Thibault
dc044dd2a5 Bug 1425932 - Explicitly process chrome events before processing document events. r=surkov 2017-12-21 07:59:00 -05:00
Eitan Isaacson
e554177d0c Bug 1396478 - Add a crashtest. r=RyanVM 2017-12-19 08:20:00 -05:00
Jorg K
a83efbdfb5 Bug 1426062 - Follow-up for bug 1422465: check parent before dereferencing it. r=surkov 2017-12-20 00:00:00 -05:00
Eric Rahm
b1c032672b Bug 1424120 - Part 5: Enforce support for only radix of 10 and 16. r=njn
In theory other radixes can be passed in but we don't actually handle them.
This asserts that the radix is supported and just switches over to using 10 and
16 directly.

--HG--
extra : rebase_source : 71891302d499bfd108a5bb41626d921b3be193ce
2017-12-07 18:54:13 -08:00
Alexander Surkov
180fc6c813 Bug 1424768 - telemetry accessible tree update times, r=jamie, francois 2017-12-18 09:50:45 -05:00
Samuel Thibault
0b770bd497 Bug 1260598 Make document events wait for chrome content insertion events r=surkov
When switching from a tab to another, accessibility layers needs to get
events about the tab switch before events about the newly-focused
element of the document.

This changeset does it so by first making IsUpdatePending() not only
watch for the document's pending updates, but also its parent's pending
updates, so that the document doesn't process focus events immediately,
but queue them.

Then, WillRefresh for the document should not process events until its
parent chrome has finished processing its content insertion events
(corresponding to the tab switch).

Eventually, ScheduleContentInsertion can not afford leaving an empty
array of notifications and not a schedule processing any more.
(was introduced by c2aeece5eb10 'Bug 1242989 - keep content insertions
in a hash')
2017-12-14 11:07:00 +02:00
Mark Banner
d44db2f404 Bug 1425244 - Enable ESLint rule no-redeclare for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: CPetBgR8ZAm

--HG--
extra : rebase_source : 79d6829bcce9a775e9b44b4659d7f0992a4ff2a1
2017-12-11 15:32:36 +00:00
Mark Banner
4330ae79f1 Bug 1425244 - Enable ESLint rule no-shadow for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: 1lkHq7csLkq

--HG--
extra : rebase_source : 4b6965532e3a18a74c62ed9fa6f7312e3baf783f
2017-12-11 14:04:42 +00:00
Mark Banner
bf483821a7 Bug 1425244 - Enable ESLint rule space-unary-ops for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: BPufvA8kUkv

--HG--
extra : rebase_source : 041a756d850f000fc5b806b23d628f2da542d271
2017-12-11 13:49:22 +00:00
Mark Banner
217fc0f5a2 Bug 1425244 - Enable ESLint rule no-new-object for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: AU5AlyOdgoy

--HG--
extra : rebase_source : a9bb04d3dc5d6823160baa83b710ac68cefeb814
2017-12-11 13:45:41 +00:00
Mark Banner
6ad02b364e Bug 1425244 - Enable ESLint rule no-lonely-if for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: DILOcLjsaoF

--HG--
extra : rebase_source : ac66819b55cf689b5264d6ea1ef16d96712cd179
2017-12-11 13:42:17 +00:00
Mark Banner
c39a3faacd Bug 1425244 - Enable ESLint rule no-cond-assign for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: 59yovY1BQ0p

--HG--
extra : rebase_source : c4923734a9403c316f2d6f21ebef777d70e147a9
2017-12-11 13:36:16 +00:00
Mark Banner
c375803246 Bug 1425244 - Enable ESLint rule comma-spacing for accessible/tests/mochitest/. r=surkov
MozReview-Commit-ID: BIgkIWmCcaM

--HG--
extra : rebase_source : 9abe9235db376babf464e4e246026499a69245b7
2017-12-11 13:32:51 +00:00
Mark Banner
7f569f1c3b Bug 1425244 - Enable ESLint rule object-shorthand for accessible/. r=surkov
MozReview-Commit-ID: 9LCLDppVj1t

--HG--
extra : rebase_source : 5e93113ce588f9c50fff55099b27489806158b6c
2017-12-11 13:08:14 +00:00
James Teh
0ba48a4da2 Bug 1425030: ia2Accessible::get_accessibleWithCaret: Gracefully handle null returned from SelectionManager::AccessibleWithCaret. r=surkov
We weren't checking for null previously, thus causing a crash when there was no caret.
MozReview-Commit-ID: 6NNRafcVPhb

--HG--
extra : rebase_source : 7d6bfc8c776c1be1429da8c2c94f4bda232c6314
2017-12-12 13:38:34 +10:00
James Teh
47040c9214 Bug 1424657: Make IAccessible::accChild handle remote ids for popup windows. r=eeejay
Bug 1422201 changed GetIAccessibleFor so it only handles remote ids when called on the root accessible.
However, this breaks webextension popup documents.
These popups have their own HWND, so the root accessible of that HWND needs to handle accChild for ids in remote documents within that HWND.
Therefore, expand the restriction to cover the root accessible of any HWND, not just the main HWND.

MozReview-Commit-ID: 69v4XSeQLcS

--HG--
extra : rebase_source : bf5c5e0a475424b2276800d1a10ab1a46c136bd6
2017-12-11 14:35:00 +10:00
Aaron Klotz
f438b13735 Bug 1423989: Add telemetry probe to measure the time spent finding the UIA client; r=Jamie, r=francois
MozReview-Commit-ID: 7Z9Ay3TiHjH

--HG--
extra : amend_source : 3e17c89bb53ea8605021c4c1771db6d4fea3bcbb
2017-12-04 17:56:45 -07:00
Gurzau Raul
91d3bc0100 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 00:36:15 +02:00
Eitan Isaacson
2fccef2647 Bug 1396478 - Don't process text changes from nodes that were removed from doc. r=surkov 2017-12-07 10:45:00 +02:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Sylvestre Ledru
a9961096c0 Bug 1394734 - Simplify various corner cases r=glandium
MozReview-Commit-ID: 4s4JdXZPvmv

--HG--
extra : rebase_source : c8f663c99442d41db5f81ac5fe1aa1f47fd5ed82
2017-12-07 22:10:19 +01:00
Sylvestre Ledru
4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Brindusan Cristian
5b9ee89503 Merge mozilla-central to autoland a=merge r=merge on a CLOSED TREE 2017-12-08 12:06:24 +02:00
Brian Grinstead
9c9c6b777b Bug 1422465 - Remove the nsIDOMXULPopupElement interface and [implements] attribute on the "popup-base" and "panel" bindings;r=bz,surkov
MozReview-Commit-ID: EvzuohEgFSh

--HG--
extra : rebase_source : 838cd68dda56778e6815c7c75a6ca158902c8f29
2017-12-07 13:37:06 -08:00
Brian Grinstead
a443d0e5d4 Bug 1422465 - Add regression test to ensure that the awesomebar richlistbox gets the COMBOBOX_LIST role;r=surkov
In the next changeset we will remove the nsIDOMXULPopupElement interface, which
was only used to make sure that this role is set. There wasn't a test covering
this case yet, so this changeset adds one.

Note that we are using a mochitest-browser test as opposed to directly testing
markup like `<panel><richlistbox /></panel>` in a mochitest-chrome test so that
we'll actually be able to catch a regression if the markup for the awesomebar changes.

MozReview-Commit-ID: KGaxQZTDq69

--HG--
extra : rebase_source : 671b718fd010b5f6a2036a695d2c4c03c8b64654
2017-12-07 13:05:07 -08:00
Andreea Pavel
89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Aaron Klotz
80a4e21834 Bug 1419886: Part 2 - Add UIA detection to a11y and centralize a11y instantiator telemetry under a11y::SetInstantiator function; r=Jamie
MozReview-Commit-ID: 11QN7amImK9
2017-12-04 17:56:31 -07:00
Bill McCloskey
bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Emilio Cobos Álvarez
74b31155f7 Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Gurzau Raul
f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
James Teh
63f0dbc751 Bug 1422674: Fix IAccessible::accChild on parent process accessibles with positive indices. r=MarcoZ
Previously, in the parent process, we were treating positive child ids as remote unique ids.
This of course failed when searching remote documents and returned early.
Make sure we only treat ids as remote if they are less than 0.
Ids above 0 are child indices and are handled later in the code for both local and remote children.

MozReview-Commit-ID: 2KmFj6rTXTV

--HG--
extra : rebase_source : 273496a3f6420d184f71795095937638e1e3e2ca
2017-12-06 10:11:17 +10:00
Noemi Erli
449829ebb2 Merge mozilla-central to mozilla-autoland. r=merge a=merge 2017-12-05 16:31:06 +02:00
Eitan Isaacson
2cc9a52ceb Bug 1421018 - Create accessible client blocklist and add TBNNotifier.exe. r=jimm 2017-12-04 13:20:00 -05:00
Narcis Beleuzu
1f7fdd5826 Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-12-06 01:49:19 +02:00
Marco Castelluccio
8a57eeb106 Bug 1423218 - Disable a11y test_tabbrowser.xul in Windows coverage builds. r=jmaher
--HG--
extra : rebase_source : 9d0215e31081c77fa1dd993f4dc32b0876e70ab3
2017-12-05 16:10:29 +01:00
James Teh
caac6a3325 Bug 1422201: Only handle remote ids passed to IAccessible::accChild on the root accessible. r=MarcoZ
Previously, we could return remote accessibles which weren't actually descendants of the accessible on which accChild was called.
For example, calling accChild on a local document with the id of a remote document would happily return the remote accessible.
This confused clients such as NVDA which use accChild to check whether something is a descendant of a document.

MozReview-Commit-ID: 8mJ4m6RC3r2

--HG--
extra : rebase_source : c56040d84e09c2b9ede94985cdd94606c27160a3
2017-12-04 15:32:56 +10:00
Eitan Isaacson
a55e238edf Bug 1409731 - Expose input[type=date/time] correctly in a11y. r=surkov, r=jjong 2017-12-02 18:12:14 -05:00
James Teh
31c03e927b Bug 1421873: Fix infinite loop in HandlerProvider::GetAllTextInfoMainThread when invalid attribute offsets are returned. r=MarcoZ
When querying text attributes, Gecko can return an end offset less than the requested offset in some rare cases, which isn't valid.
This is perhaps because the text mutated during the attribute fetching loop for some reason, making the requested offset invalid.
We now check the end offset and break out of the loop in this case.
This fixes a freeze after sending a message in OX Mail with NVDA.

MozReview-Commit-ID: 1lVSLAdOcS7

--HG--
extra : rebase_source : 048fbed8ddc591f62c17d559483bfe2f1542431c
2017-11-30 16:44:02 +10:00
Bogdan Tara
d8635b15e4 Merge inbound to mozilla-central r=merge a=merge on a CLOSED TREE 2017-11-30 00:41:09 +02:00
Dorel Luca
f622b80073 Merge mozilla-central to mozilla-inbound r=merge 2017-11-29 12:34:02 +02:00
Dorel Luca
be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Yura Zenevich
77e0097f7a Bug 1419131 - adding a11y force disabled pref observer when accessibility service is being created. r=surkov
MozReview-Commit-ID: G2pG3PcUMrE
2017-11-29 00:01:18 -05:00
James Teh
e9098869dd Bug 1421478: Clarify comment in handlerDataCleanup.h. r=aklotz
MozReview-Commit-ID: EVzuqVMl7Ck

--HG--
extra : rebase_source : ebcad7cbc5ed49417ece2d9b220d52488ee28732
2017-11-29 10:18:01 +10:00
James Teh
2cb46a14be Bug 1418448 part 3: Accessible Handler/Provider: Unify release of interfaces in StaticIA2Data. r=aklotz
Both Provider and Handler need to release the interfaces in StaticIA2Data.
Therefore, move this into a common function to avoid duplication pain in future.

MozReview-Commit-ID: 7J4iuvDa8m2

--HG--
extra : rebase_source : 98c97b51c27c318ba987787518cfd70bda8967d4
2017-11-24 15:10:41 +10:00
James Teh
f7fcce5742 Bug 1418448 part 2: AccessibleHandler: Clean up DynamicIA2Data. r=aklotz
We need to clean up the VARIANT and BSTRs in DynamicIA2Data in the handler as well.
We do this in two places:
1. Before reading a new payload (because we need to clean up the existing payload); and
2. When we're being destroyed.

MozReview-Commit-ID: GvO7csuxtwZ

--HG--
extra : rebase_source : 92cc9a64deddee07bbbc77e53117c15351816778
2017-11-24 15:14:04 +10:00
James Teh
f81d8d0130 Bug 1418448 part 1: Accessible HandlerProvider: Clean up DynamicIA2Data correctly. r=aklotz
DynamicIA2Data contains several BSTRs that need to be freed with SysFreeString.
Previously, we just did a ZeroMemory without actually freeing them.
This cleanup code is placed in a header file so it can be used by AccessibleHandler as well.

MozReview-Commit-ID: 4SWuK9oMRYZ

--HG--
extra : rebase_source : e7358752e7eee1bae000e4005832bfc48c9342af
2017-11-24 15:12:37 +10:00
Tiberius Oros
18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
Brian Grinstead
30a99a2b95 Bug 1419170 - Remove the statusbar and statusbarpanel bindings;r=Paolo
MozReview-Commit-ID: DbwMUBpHcri

--HG--
extra : rebase_source : 0fb627a10860302ca5f31013ed7d8370eb655230
2017-11-27 09:17:04 -08:00
Dorel Luca
79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Alexander Surkov
fd8f366bae Bug 1389365 - enable logging for accessible/tests/mochitest/tree/test_tabbrowser.xul 2017-11-28 09:56:26 -05:00
Joel Maher
e0027ceaac Bug 1389365 - Disable accessible/tests/mochitest/tree/test_tabbrowser.xul on linux debug for frequent failures. r=me, a=testonly 2017-11-27 11:14:12 -05:00
James Teh
242aa87f1a Bug 1419362 part 4: AccessibleHandler: When a caller asks for all text, cache hyperlinks and text attributes in the same call. r=MarcoZ
If a client requests all text (via IAccessibleText::text with IA2_TEXT_OFFSET_LENGTH), it's quite likely they will want all other information about the text as well; i.e. embedded objects and attributes.
Therefore, fetch all of this using a single cross-process call.
The text is immediately returned to the client.
The hyperlinks and attributes are cached for later return to the client when they call the appropriate methods.
They are only cached for one call; i.e. after the client retrieves them, the cache is dropped.
This makes memory management simpler and lowers the risk of cache invalidation problems.

MozReview-Commit-ID: FgFkX8J7wg1

--HG--
extra : rebase_source : e521d6ca7b00fcf1aad1f0ada299bac4c4b85c50
2017-11-22 21:32:28 +10:00
James Teh
f5aa51e880 Bug 1419362 part 3: Accessible HandlerProvider: Implement a method to retrieve all text, hyperlinks and attributes at once. r=aklotz,MarcoZ
This allows the handler to fetch all text information in a single cross-process call when appropriate.
Normally, it would be a minimum of 3 calls, plus one call for each additional attribute run.

MozReview-Commit-ID: K5x9bAWiWWJ

--HG--
extra : rebase_source : fbf89ff79d7afcff6bcc32ff940f9e06c1e7f136
2017-11-22 16:08:11 +10:00
James Teh
29ed5a05ed Bug 1419362 part 2: Move AccessibleTextTearoff into AccessibleHandler. r=MarcoZ
We want to be able to cache data related to both IAccessibleText and IAccessibleHypertext2 in a single call.
This is difficult with the tearoff because separate instances of the tearoff get created for the two interfaces.
Ensuring we use the same instance means working around reference cycles.
We could maintain a separate cache object, but that makes things more complex.
Therefore, it's much simpler to get rid of the tearoff.

A few things to note:

1. ResolveAccHypertext has been renamed to ResolveIAHypertext for consistency with the rest of AccessibleHandler.
2. mAccHypertextProxy has been renamed to mIAHypertextPassThru for consistency with the rest of AccessibleHandler.
3. mIAHypertextPassThru is a weak reference (just like the rest of the passthru pointers) because it refers to a proxy interface and the proxy aggregates the handler.
  Thus, we release it immediately to avoid reference cycles.
  When it was a tearoff, this was not the case; it was a strong reference.

MozReview-Commit-ID: 8NwPA0T1MFX

--HG--
extra : rebase_source : 57c4d19516d01b820bb3b4c1a9974ff3b889ed64
2017-11-22 12:16:18 +10:00
James Teh
2836bbadbd Bug 1419362 part 1: Make IAccessibleHypertext2::hyperlinks return null and S_FALSE when there are no hyperlinks. r=MarcoZ
As per the spec, if there are no hyperlinks, the hyperlinks array should be set to null and S_FALSE should be returned.
This saves pointless memory management when there are no hyperlinks.

MozReview-Commit-ID: 9wsiXBely6G

--HG--
extra : rebase_source : bc1f6b8a04205939b322393674414365fd89f39a
2017-11-22 10:33:23 +10:00
Gabriele Svelto
5d54962dc3 Bug 1402519 - Remove MOZ_CRASHREPORTER directives from accessible; r=surkov
MozReview-Commit-ID: F4eVp4Pcl8I

--HG--
extra : rebase_source : 9643c1ace95baa5b4e829687fbc737473b09dd96
2017-10-10 12:01:02 +02:00
James Teh
b38f9b5d10 Bug 1421209 part 2: Fix IAccessible::accRole where a string is returned and ARIA role="". r=MarcoZ
For elements such as divs which have no enumerated MSAA role, we return a string.
First, we try the ARIA role, and failing that, we use the tag name.
However, if the author specifies role="", we previously failed.
Instead, we now fall back to the tag name for an empty role string.
That is, we treat the non-existence of the attribute or an empty string value the same way.
Although this is invalid markup, it occurs in the wild, and accRole failing breaks handler caching.

Note that this patch also removes a check for msaaRole != ROLE_SYSTEM_CLIENT when getting a string role.
This check is now pointless because we've already returned earlier if msaaRole != USE_ROLE_STRING.
That is, msaaRole can only be USE_ROLE_STRING at this point.

MozReview-Commit-ID: 7PVvU5V2uO4

--HG--
extra : rebase_source : 7aa1baee31393291ed15e8d6687e6a2d576f858c
2017-11-29 15:36:34 +10:00
James Teh
abec79ee0b Bug 1421209 part 1: Fix incorrect iid in AccessibleHandler::ResolveIAHypertext. r=MarcoZ
Previously, it was querying for IID_IAccessibleHypertext, but this is actually an IAccessibleHypertext2 pointer.
This meant we were crashing when trying to call an IAccessibleHypertext2 method.
This was a regression introduced in bug 1419362.

MozReview-Commit-ID: 7akjIfNuIh3

--HG--
extra : rebase_source : 18e126e3b47bc5a8f486870a285668a7f85e95c9
2017-11-29 14:39:00 +10:00
Jim Mathies
60f8ccca28 Bug 1421402 - Add an environment variable for controlling the accessible blocklist. r=aklotz
MozReview-Commit-ID: GFCRbrfva7A

--HG--
extra : rebase_source : 88c8e6e5d9b1f87e20712f3f77ade940e9b3570c
2017-11-28 14:53:09 -06:00
Brian Grinstead
6363cad3d4 Bug 1417119 - Remove xpfe autocomplete binding;r=iann_bugzilla+23131,Paolo
MozReview-Commit-ID: 6oDDVFetEBT

--HG--
extra : rebase_source : 7dbdd41a968e8cf711d9a639b28b9bc367121c13
2017-11-28 08:04:53 -08:00
James Teh
bac5e97690 Bug 1421144: Fix IAccessible::accFocus on the root accessible for remote content. r=surkov
The base implementation of accFocus can't handle the case when a remote document has focus and just returns no focus (VT_EMPTY).
Override accFocus on the root accessible to try the accessible for the remote document in the active tab in this case.
This fixes focus loss with NVDA when dismissing the System menu.

MozReview-Commit-ID: 1jhAv08rDFU

--HG--
extra : rebase_source : 7381b397724f21ba894dc94a051996e5d96c642d
2017-11-28 04:15:56 +10:00
Brian Grinstead
2214548e2c Bug 1416493 - Remove the menuseparator XBL binding;r=Gijs
Key accessibility off of the tag name instead of the role attribute
and load styles in global.css instead of <resources>

MozReview-Commit-ID: Epv0rHHzbz0

--HG--
extra : rebase_source : 2239c8ccca8d899b4c4144faab7212f120f00e23
2017-11-22 13:47:09 -08:00
Coroiu Cristina
9eb4f34b0a Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-22 01:50:20 +02:00
James Teh
f08015a587 Bug 1417327 part 3: Accessible handler: Fix cache for IAccessible::accDefaultAction and use it for IAccessibleAction::name(0). r=MarcoZ
1. Bug 1363595 added support for retrieving accDefaultAction from the cache, but the value was never cached in the first place.
This would have meant that accDefaultAction was returning nothing to clients.

2. Since accDefaultAction is the name of the first action, we can also use this cached value for IAccessibleAction::name for index 0.

MozReview-Commit-ID: 6PGRH45kKdB

--HG--
extra : rebase_source : 52688f1e44ad7613c5dd14903b6240a51aa2d4eb
2017-11-16 16:51:28 +10:00
James Teh
2d3278eb8f Bug 1417327 part 2: Accessible handler: Cache IAccessibleTableCell row/column indexes/extents. r=MarcoZ
MozReview-Commit-ID: 8hMzyJZ5zFI

--HG--
extra : rebase_source : dd66de5e37cc1abdbb5e0e7bb6d3bf67ad65edbb
2017-11-16 11:47:28 +10:00
James Teh
c743f90376 Bug 1417327 part 1: Accessible handler: Cache IAccessibleAction::nActions. r=MarcoZ
MozReview-Commit-ID: EJIhSxSiQGq

--HG--
extra : rebase_source : 89b73bd626f93c17a467c5ad06b391bffa534ced
2017-11-15 17:27:05 +10:00
James Teh
fb7c94c665 Bug 1416986 part 4: AccessibleHandler: Don't fall through to the proxy for IAccessibleHyperlink. r=aklotz
The handler's implementation of IAHyperlink just forwards calls through to the proxy.
However, it exists because we want the cache to be used when a hyperlink is retrieved.
When querying from the handler to IAHyperlink, we should use the same implementation.
This is mostly about consistency/correctness, especially as we're increasing complexity.

MozReview-Commit-ID: AwYibrFzUyf

--HG--
extra : rebase_source : 3d8f33639190a4220a21d0a6eeac401829d8345c
2017-11-15 12:32:52 +10:00
James Teh
ff41c00a3e Bug 1416986 part 3: AccessibleHandler: Avoid cross-process QI calls for interfaces which we know don't exist. r=aklotz
The proxy manager caches interfaces marshaled in the payload and returns them on QI without a cross-process call.
However, it doesn't know about interfaces which don't exist.
We can determine this from the payload, since interfaces which don't exist will have a null pointer.
We use this information to avoid querying the proxy in this case.

MozReview-Commit-ID: FnzDetmTiPP

--HG--
extra : rebase_source : 076ce714a69d3883a149487e5f9235ff495eedd0
2017-11-15 12:28:45 +10:00
James Teh
aebc388fb6 Bug 1416986 part 2: Include interfaces the client is likely to request in the accessible handler payload. r=aklotz
Now that virtual buffers have to render across processes, we want to eliminate as many cross-process calls as possible.
This includes QueryInterface calls, since buffers query for several interfaces on every node they visit.
To avoid these cross-process QI calls, we include interfaces clients are likely to request in the handler payload.
This way, they get marshaled in the single call used to retrieve the object.

This patch does the following:

1. Passes the interceptor when building the payload.
We need this so we can get interceptors for other interfaces.

2. Splits the payload into two main parts: a static part and a dynamic part.
The (new) static part contains the interface pointers. The dynamic part contains the rest.
This is necessary because the refresh call cannot pass the interceptor, but the interceptor is needed to build the static part.
Also, re-building the static part is pointless when refreshing.

3. Includes the interface pointers in the payload (BuildStaticIA2Data).
The pointers also have to be cleaned up after marshaling.

4. Releases the interface pointers in the handler after the payload is received.
We do this because they're aggregated by the proxy manager as they're unmarshaled.

MozReview-Commit-ID: 6VRLMNScgwW

--HG--
extra : rebase_source : 249589643b7a69e870962ea55a44849bf03a2693
2017-11-15 12:18:18 +10:00
Aaron Klotz
f72d7494e0 Bug 1418535: Block a11y instntiation if no known ATs are present and known bad DLLs are; r=jimm
MozReview-Commit-ID: FtoEamY9P8r
2017-11-20 14:15:15 -07:00
Cosmin Sabou
fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02:00
Yura Zenevich
7309a13645 Bug 1418102 - fixed jsat addName method when name is an empty string. Updated tests. r=surkov
MozReview-Commit-ID: HoKtFOmua9U
2017-11-20 11:46:50 -05:00
Alexander Surkov
1001414f40 Bug 1418102 - role heading need to have a name computed from its subtree, r=marcoz 2017-11-20 10:02:52 -05:00
Gijs Kruitbosch
59ffe6e6ca Bug 1408044 - fix miscellaneous tests that depended on about: existing, r=dao
MozReview-Commit-ID: EKsaFbRoBc4

--HG--
extra : rebase_source : 3c22ed909437a7fa98e2126b4eb8b9c669f98173
2017-11-15 17:19:33 +00:00
Dan Banner
b2e847755c Bug 1367704 - Enable the semi ESLint rule across the tree. r=standard8
MozReview-Commit-ID: GrlcOI9K2hJ

--HG--
extra : rebase_source : 6574cf3c67eb11733ffd9999c260f71c8551abc4
2017-05-28 19:57:46 +01:00
Tooru Fujisawa
b690bcd12e Bug 1416246 - Remove conditional catch consumers in accessible/. r=MarcoZ 2017-11-18 22:57:16 +09:00
Timothy Guan-tin Chien
4c0b5b6275 Bug 1327097 - Part II, Allow a11y test harness to listen event on the DOM element r=smaug,surkov
MozReview-Commit-ID: 6DA2vyHXwZN

--HG--
extra : rebase_source : d2cceee32bd58fe69c84a0a1ddd325712757c32e
2017-11-14 17:02:45 +08:00
Ciure Andrei
a8907fc95a Backed out 5 changesets (bug 1408044) for failing Android test: TestAboutPagesPreparer.java:24: cannot find symbol. r=backout on a CLOSED TREE
Backed out changeset 5c5152ad910d (bug 1408044)
Backed out changeset c9a062838c12 (bug 1408044)
Backed out changeset 9ceaa645f2a9 (bug 1408044)
Backed out changeset 10fc0a581606 (bug 1408044)
Backed out changeset 513140019014 (bug 1408044)
2017-11-17 12:19:30 +02:00
Ciure Andrei
fdbe147ffb Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-17 12:09:31 +02:00
Ciure Andrei
92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
Brian Grinstead
0ed4d8d06c Bug 1416368 - Remove unused statusbarpanel-* bindings;r=dao
MozReview-Commit-ID: I6QKxP6joag

--HG--
extra : rebase_source : 0a78abfaa63e969c41656fb2b7957dc9e959bc8b
2017-11-10 14:48:34 -08:00
Eitan Isaacson
1432f23f74 Bug 1414451 - Check that both documents share the same root. r=aklotz 2017-11-10 14:59:00 -05:00
Noemi Erli
f24a75f9b7 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-15 12:15:40 +02:00
Chris Peterson
0c6b205207 Bug 1415470 - a11y: Fix VS2017 initializer list order warnings. r=yzen
Reorder DocAccessibleParent's and DocAccessibleChild's constructor initializer lists to fix these VS2017 warnings:

a11y/DocAccessibleParent.h(32): warning C5038: data member 'mozilla::a11y::DocAccessibleParent::mShutdown' will be initialized after data member 'mozilla::a11y::DocAccessibleParent::mEmulatedWindowHandle'

accessible/ipc/win/DocAccessibleChild.cpp(22): warning C5038: data member 'mozilla::a11y::DocAccessibleChild::mEmulatedWindowHandle' will be initialized after data member 'mozilla::a11y::DocAccessibleChild::mIsRemoteConstructed'

MozReview-Commit-ID: 8flWtpe13ob

--HG--
extra : rebase_source : 96528a886c099897df691623948d755eecda119f
2017-11-06 23:54:53 -08:00