Commit Graph

6545 Commits

Author SHA1 Message Date
Aaron Klotz
bbcb22aba6 Bug 1383501: Use HKEY_LOCAL_MACHINE\SOFTWARE\Classes for resolving COM registration instead of HKEY_CLASSES_ROOT; r=eeejay
MozReview-Commit-ID: 4kMWNKEpejh
2017-08-21 12:55:55 -06:00
Aaron Klotz
e72586e7f4 Bug 1392666: Unconditionally initialize e10s-specific variables in Win32 a11y::PlatformInit; r=eeejay
MozReview-Commit-ID: 6aqnbt9Qytp
2017-08-22 10:02:30 -06:00
David Bolter
279b9baff2 Bug 1391733 - Update telemetry to provide information about e10s incompatible jaws usage. r=surkov 2017-08-24 11:00:08 -04:00
Nick Fox
27ff4d1faf Bug 1289157 - remove eSurvivingInUpdate flag from Accessible class, r=surkov 2017-08-24 10:22:55 -04:00
Dão Gottwald
b34674d9c1 Bug 1054740 - When a session should be restored, don't load the homepage before the session file has been read. r=mikedeboer
MozReview-Commit-ID: 7W4ihQZEeWf

--HG--
extra : rebase_source : c8d6acbed4ddbff148523982b0b218479063855c
2017-08-24 18:39:39 +02:00
Nicholas Nethercote
eb53891d73 Bug 1392993 - Change nsIAccessibleObjectAttributeChangedEvent.changedAttribute from an nsIAtom to an AString. r=MarcoZ.
This removes one use of nsIAtom within scripts, which is good (see bug
1392883). All the uses of this attribute within scripts just converted it to a
string anyway.

--HG--
extra : rebase_source : 080c12506722df5d18e78659bbb922421baa5b80
2017-08-24 17:19:09 +10:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Nicholas Nethercote
f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Eric Rahm
a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Makoto Kato
4ff82f61f7 Bug 1348073 - Part 3. Adjust offset value in accessible/tests/mochitest/textcaret/test_general.html. r=surkov
When enabling enabling lazy frame construction for editable regions, accessible/tests/mochitest/textcaret/test_general.html is failure because whitespace only node doesn't have frame even if editable.

To pass this test, we should adjust offset value.

MozReview-Commit-ID: Jk9crabIPKD

--HG--
extra : rebase_source : 3f9d87c762ba324556b3133d64305c17d5305154
2017-08-21 15:31:38 +09:00
Wes Kocher
655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07:00
Masatoshi Kimura
5f035965ac Bug 1390209 - Remove unused nsIDOMHTML*Element interfaces. r=qdot
MozReview-Commit-ID: DagD3IHhRZy

--HG--
extra : rebase_source : 2add5ad8e9181ba9bf29f53a6df75b730ab5ea78
2017-08-15 01:31:47 +09:00
Eitan Isaacson
f11a1c6fda Bug 1388062 - Refactor browser aria-owns tests. r=surkov r=yzen 2017-08-21 13:49:40 -07:00
Eric Rahm
0938982c90 Bug 1389598 - Part 4: Remove remaining gonk refs. r=froydnj
--HG--
extra : rebase_source : 063c7f95dda063eafabfa1921366bd1957b8fe73
2017-08-11 17:45:18 -07:00
Wes Kocher
9e13a44b54 Merge inbound to central, a=merge
MozReview-Commit-ID: GEfEDRZk5bo
2017-08-16 16:59:26 -07:00
Eitan Isaacson
5dcba0ecf8 Bug 1376754 - Remove hide event target flag from accessible when event is dropped. r=surkov 2017-08-16 07:27:31 -07:00
Xidorn Quan
59c8771a98 Bug 1387995 - Disable failing a11y tests and enable it for stylo. r=jmaher
MozReview-Commit-ID: 6drQyOT7fs4

--HG--
extra : rebase_source : 8040fbd3424e254f551369382378a9520348c0d5
2017-08-15 15:21:28 +10:00
Masayuki Nakano
bd1efdbf56 Bug 1388006 - a11y module should use TextEditor and HTMLEditor instead of nsIEditor r=surkov
Accessibility module uses nsIEditor (and nsIPlaintextEditor).  However, now, it can use TextEditor and HTMLEditor.  So, it should use them.

Note that this patch makes HTMLTextFieldAccessible::GetEditor() use nsITextControlElement::GetTextEditor() instead of nsIDOMNSEditableElement::GetEditor() but this won't change actual behavior since both implementation of HTMLInputElement and HTMLTextareaElement are just call shared internal methods.

MozReview-Commit-ID: HxHMGVSvWFv

--HG--
extra : rebase_source : a4ae19f06fb9612eacd4ae2e57fd92d36783ef32
2017-08-07 17:42:50 +09:00
Masayuki Nakano
b11e66f8da Bug 1388004 - part1: Make nsContentUtils::GetHTMLEditor() return HTMLEditor* rather than nsIEditor* r=smaug
nsContentUtils::GetHTMLEditor() currently returns nsIEditor* since editor of doc shell may be any type of editors such as TextEditor or editor object which is implemented by JS.  However, nsIEditor is now a builtin class.  So, it can return HTMLEditor.

MozReview-Commit-ID: 3YoFOplZa7W

--HG--
extra : rebase_source : 46f42d23babd64bf0a5003e66e8fe3b9e0bd7166
2017-08-07 16:33:59 +09:00
Wes Kocher
a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
J. Ryan Stinnett
7d6a07aa90 Bug 1389153 - Skip more shadow DOM tests for Stylo. r=heycam
MozReview-Commit-ID: Arz7INgvzhH

--HG--
extra : rebase_source : 4b05b842aaad29fe9cad57f45be93db69ce1d1b7
2017-08-10 12:07:50 -05:00
Ryan VanderMeulen
6eb7aef00e Merge m-c to autoland. a=merge 2017-08-09 18:51:26 -04:00
Eitan Isaacson
b6d69628bd Bug 1385372 - Allow same id in aria-owns. r=surkov 2017-08-09 12:33:44 -04:00
Masatoshi Kimura
dfe3f997a2 Bug 1387832 - Remove @deprecated nsIAccessibleRetrieval. r=surkov
MozReview-Commit-ID: DaqIezvQvUe

--HG--
extra : rebase_source : e5449a0179b18ddcc45faff1f7e98bb22dbb61ae
2017-08-06 23:34:32 +09:00
Wes Kocher
7651bde05c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9Abf0fILvvK
2017-08-08 15:16:00 -07:00
Wes Kocher
650baf5c45 Merge inbound to central, a=merge
MozReview-Commit-ID: HpVAbc2vi78
2017-08-08 15:14:28 -07:00
Aaron Klotz
05284bffa5 Bug 1386836: Add a nsACString overload to nsAccessibilityService::GetStringEventType; r=surkov
MozReview-Commit-ID: 9hMC54ki37e
2017-08-02 15:39:51 -06:00
dagasatvik
d4398e95f2 Bug 1385820 - Enable the ESLint no-new-wrappers rule across mozilla-central; r=markh,standard8
MozReview-Commit-ID: FvJO3ibeiwg

--HG--
extra : rebase_source : 5fc5c6760924da81a6d0708ff0d5586fc62c8c5e
2017-08-07 23:57:51 +05:30
Aaron Klotz
19b37af0ff Bug 1386798: Add profiler markers for a11y events; r=surkov
MozReview-Commit-ID: EGvmB9qbKKx
2017-08-02 15:31:08 -06:00
Nicholas Nethercote
f941156987 Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron.
This removes about 2/3 of the occurrences of nsXPIDLString in the tree. The
places where nsXPIDLStrings are null-checked are replaced with |rv| checks.

The patch also removes a couple of unused declarations from
nsIStringBundle.idl.

Note that nsStringBundle::GetStringFromNameHelper() was merged into
GetStringFromName(), because they both would have had the same signature.

--HG--
extra : rebase_source : ac40bc31c2a4997f2db0bd5069cc008757a2df6d
2017-08-04 14:40:52 +10:00
Eitan Isaacson
ae6fc54c7e Bug 1363723 - Fix eslint failures. r=me 2017-08-04 15:05:40 -07:00
Eitan Isaacson
4879996ea6 Bug 1363723 - Prevent aria-owned nodes from getting into bad state. r=surkov 2017-08-04 13:15:54 -07:00
Michael Smith
11b0edbc50 Bug 1373739 - Make macOS compatible with the headless WPT changes. r=bdahl
MozReview-Commit-ID: BeDPpG6G6Iy

--HG--
extra : rebase_source : 1745c4a34cb35892bba2e65d5a9caac99d0171a7
2017-07-28 23:20:21 -07:00
Dan Banner
3e7397ae81 Bug 1385817 - Enable brace-style and no-else-return ESLint rules for accessible/ r=yzen
MozReview-Commit-ID: DeVusjK4kt0

--HG--
extra : rebase_source : 67dfeb6c82792ad453dfe72e74dbc8f430877649
2017-08-01 19:08:02 +01:00
Dan Banner
1ce5193a91 Bug 1385817 - Enable space related ESLint rules for accessible/ r=yzen
MozReview-Commit-ID: BeIn3ThKQAx

--HG--
extra : rebase_source : 02a3d9583a55a186bc6bb5c0308c6a88d72daf13
2017-08-01 17:15:51 +01:00
Dan Banner
b9a328209b Bug 1385817 - Enable the quotes ESLint rule for accessible/ r=yzen
MozReview-Commit-ID: 1pS6xMzeh82

--HG--
extra : rebase_source : 7e600853f85e8ec14047768183ef9289254d3e0d
2017-08-01 17:13:27 +01:00
Wes Kocher
851b59bdbe Merge m-c to inbound a=merge
MozReview-Commit-ID: 1p4eNdfSz9p
2017-08-02 17:46:32 -07:00
Jim Mathies
55d2512f30 Bug 1384560 - Annotate crash reports with accessibility client information. r=aklotz
MozReview-Commit-ID: LhxqeR6NFR6
2017-08-02 09:28:37 -05:00
Masatoshi Kimura
f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Rajesh Kathiriya
48e6bc2124 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G

--HG--
extra : rebase_source : b455e846ab79c8141150517e67e542e3e06d630e
2017-07-25 23:45:41 +05:30
Eitan Isaacson
3e9099fc0e Bug 1371781 - Allow <select> accessible children to be put back in list accessible. r=surkov 2017-08-01 10:05:00 -04:00
Wes Kocher
4e70ff1332 Backed out 2 changesets (bug 1371781) for failures in browser_test_aria_owns_select.js a=backout
Backed out changeset 0d3bdb80960d (bug 1371781)
Backed out changeset 2142989aace8 (bug 1371781)

MozReview-Commit-ID: 3NevhAhgtf6
2017-07-31 17:22:48 -07:00
Eitan Isaacson
999113c2a7 Bug 1371781 - Fix eslint issues in test. r=me 2017-07-31 16:36:54 -07:00
Eitan Isaacson
1911897aee Bug 1371781 - Allow <select> accessible children to be put back in list accessible. r=surkov 2017-07-31 13:00:00 -04:00
Kyle Machulis
d812ac4e87 Bug 1279218 - Additional applet tag logic removal; r=bz
I've been having problems with interdiffs on mozreview lately, so for
ease of review, this patch is being submitted as a seperate patch for
review. Once it is r+'d, it will be folded into the first patch in
this set before landing.

MozReview-Commit-ID: CS9MngaXlBd

--HG--
extra : rebase_source : 6a86fd4f7a66e73497a756976a2562d183002a2a
2017-07-28 16:44:39 -07:00
Eitan Isaacson
ea615f1729 Bug 1376825 - Set eIsNotInDocument to accessible's state when unbinding from doc. r=surkov 2017-07-20 12:57:00 -04:00
Geoff Brown
185e545f3a Bug 845134 - Modify annotation to skip test_focusedChild.html on Windows 10; r=me,test-only 2017-07-27 07:43:34 -06:00
Eitan Isaacson
c7bc22bcfd Bug 1330739 - Don't use control's frame as reference in SelectionManager. r=surkov 2017-07-26 19:02:37 -04:00
Bevis Tseng
95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Geoff Brown
d7cf87ba64 Bug 845134 - Skip test_focusedChild.html on Win 10 also; r=surkov 2017-07-26 10:08:46 -06:00
Eitan Isaacson
e6166bf4d1 Bug 1384672 - Add accessibility instantiator to about:support. r=jimm 2017-08-10 15:32:07 -07:00
Carsten "Tomcat" Book
198430bca2 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Eitan Isaacson
c92100c21c Bug 1378257 - Don't move/reclaim aria-owned children to their current position. r=surkov, r=yzen 2017-07-25 16:31:00 -04:00
Xidorn Quan
4a92d308fc Bug 1374872 - Disable tests involving web components for stylo. r=wchen
MozReview-Commit-ID: JWA210RkpAW

--HG--
extra : rebase_source : cd2a4ed75b43d500bf3a6e1e49eccb1bd38ed777
2017-06-21 14:51:37 +10:00
Aaron Klotz
4d4f358bf9 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
Aaron Klotz
24cb1e1776 Bug 1379643: When running under sandbox level >= 3, parent should retain IStream of marshaled interface to be destroyed later; r=jimm
MozReview-Commit-ID: Egb6Yahdbxm

--HG--
extra : rebase_source : a59cfdfdbd1203b89822e68765bd5a0f35b67ada
2017-07-19 12:07:45 -06:00
Aaron Klotz
5e6827da6d Bug 1380214: Ensure that if the handler payload fails to serialize that we may still marshal the accessible itself; r=eeejay
MozReview-Commit-ID: VH06GAR7Ph
2017-07-17 17:19:58 -06:00
Aaron Klotz
22d6b8c708 Bug 1380471: Move follow-up initialization for emulated windows into a callback invoked by the emulated window's WM_CREATE handler; r=yzen
--HG--
extra : rebase_source : d8742fc08cea75e994c9ee4f7c5eca50d40aeac1
2017-07-12 18:01:43 -06:00
Sebastian Hengst
46235a444c Backed out changeset 7ec72cbf67b6 (bug 1380471) for Windows 2012 static bustage. r=backout on a CLOSED TREE 2017-07-14 10:00:52 +02:00
Nicholas Nethercote
c86dc10505 Bug 1380227 - Avoid many UTF16toUTF8 and UTF8toUTF16 conversions in nsStringBundle. r=emk.
Most of the names passed to nsIStringBundle::{Get,Format}StringFromUTF8Name
have one of the two following forms:

- a 16-bit C string literal, which is then converted to an 8-bit string in
  order for the lookup to occur;

- an 8-bit C string literal converted to a 16-bit string, which is then
  converted back to an 8-bit string in order for the lookup to occur.

This patch introduces and uses alternative methods that can take an 8-bit C
string literal, which requires changing some signatures in other methods and
functions. It replaces all C++ uses of the old methods.

The patch also changes the existing {Get,Format}StringFromName() methods so
they take an AUTF8String argument for the name instead of a wstring, because
that's nicer for JS code.

Even though there is a method for C++ code and a different one for JS code,
|binaryname| is used so that the existing method names can be used for the
common case in both languages.

The change reduces the number of NS_ConvertUTF8toUTF16 and
NS_ConvertUTF16toUTF8 conversions while running Speedometer v2 from ~270,000 to
~160,000. (Most of these conversions involved the string
"deprecatedReferrerDirective" in nsCSPParser.cpp.)

--HG--
extra : rebase_source : 3bee57a501035f76a81230d95186f8c3f460ff8e
2017-07-12 15:13:37 +10:00
Aaron Klotz
a58d6b98b6 Bug 1380471: Move follow-up initialization for emulated windows into a callback invoked by the emulated window's WM_CREATE handler; r=yzen
--HG--
extra : rebase_source : 4bf99168aa2e845437238cf37d838d0d91ffb807
2017-07-12 18:01:43 -06:00
Xidorn Quan
24948e591e Bug 1390411 - Disable failing bc tests and enable it for stylo. r=jmaher
MozReview-Commit-ID: 2xdTEAnVM8B

--HG--
extra : rebase_source : 4585f7fdf6aa5833e7c8e5b6e4bd5728b8800811
2017-08-16 10:02:56 +10:00
Joel Maher
e10f1866db Bug 1379808 - disable browser_test_zoom_text.js. a=testonly
MozReview-Commit-ID: 4ZomQhmh00
2017-08-22 14:17:02 -04:00
Wes Kocher
33c2277e1f Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7rfXDtMWy2C
2017-07-12 18:26:46 -07:00
Carsten "Tomcat" Book
dc83b98670 Merge mozilla-central to mozilla-inbound 2017-07-12 11:17:55 +02:00
Joanmarie Diggs
99540643ac Bug 1379098 - ARIA combobox should map to AXComboBox. r=marcoz
Create a new internal role EDITCOMBOBOX so that we can distinguish
comboboxes with a text input (which is the case for the ARIA role)
from those which consist of only a popup button and associated list
(which is the case for the select element with a size of 1). Also
change the type of ARIA combobox from kGenericAccType to eCombobox
so that IsCombobox() will return true for both EDITCOMBOBOX and
COMBOBOX. Lastly, call IsCombobox() rather than role() when assigning
internal roles to descendants of comboboxes and emitting accessibility
events.

--HG--
extra : rebase_source : 3e31f2e2423d6cc7697b03c9afb3b1f8c136675a
2017-07-11 11:16:00 +02:00
Mark Banner
35f3666937 Bug 1380009 - Enable the ESLint no-return-await call to avoid unnecessary intermediate promise creation. r=mossop
MozReview-Commit-ID: EnhSBHMjurr

--HG--
extra : rebase_source : 74ba4c10e369067629af95bf705a9acd0df1089b
2017-07-11 22:49:55 +01:00
Sebastian Hengst
22d94d1020 Bug 1376857 - Port events/test_focus_dialog.html to browser tests: remove trailing whitespace to make eslint happy. r=eslint-fix 2017-07-10 20:39:59 +02:00
Eitan Isaacson
1d691b821d Bug 1376857 - Port events/test_focus_dialog.html to browser tests. r=yzen 2017-07-10 09:55:18 -07:00
Eitan Isaacson
b4a6856e19 Bug 1376857 - Port events/test_{docload,focus_browserui}.xul to browser tests. r=yzen 2017-07-10 09:55:18 -07:00
Eitan Isaacson
1784cc6d45 Bug 1376852 - Port bounds/test_zoom{,_text}.html r=yzen 2017-07-10 09:55:17 -07:00
Andrew McCreight
1533adf4c3 Bug 1380124 - Fix 'desctruction' typos. r=njn
MozReview-Commit-ID: 8gNYd7NL58U

--HG--
extra : rebase_source : bc0c85d96a499e8de102d1409685e6b2f7605ffe
2017-07-11 13:04:26 -07:00
Masayuki Nakano
33d778a999 Bug 1377989 - part12: Rename local variables, |endParent| which is set to start container of nsRange to |endContainer| r=smaug
This does NOT change variable names like |endNode| because it's not odd and somebody use it for nsINode and endContent for nsIContent.  So, changing them needs more work.

MozReview-Commit-ID: 22imUltlu5R

--HG--
extra : rebase_source : 6c93069d0586b37c5084eaa71861085c01da7a7d
2017-07-12 00:08:37 +09:00
Masayuki Nakano
3fd54e5d5f Bug 1377989 - part11: Rename local variables, |startParent| which is set to start container of nsRange to |startContainer| r=smaug
This does NOT change variable names like |startNode| because it's not odd and somebody use it for nsINode and startContent for nsIContent.  So, changing them needs more work.

MozReview-Commit-ID: H19pTDprRuT

--HG--
extra : rebase_source : 7a7454ac14da48a597ff19a50c863d04dcaddd6e
2017-07-12 00:02:14 +09:00
Masayuki Nakano
4ee17d1b8c Bug 1377989 - part2: Rename nsRange::GetEndParent() to nsRange::GetEndContainer() r=smaug
MozReview-Commit-ID: K4qPjtZ62yO

--HG--
extra : rebase_source : 8653db98b9bd70c77a6aac8d906f401f0222c58a
2017-07-11 21:11:37 +09:00
Masayuki Nakano
2f2ce53be5 Bug 1377989 - part1: Rename nsRange::GetStartParent() to nsRange::GetStartContainer() r=smaug
Web standards use "Container" instead of "Parent".  So, nsRange shouldn't use "Parent" for its members and methods.

MozReview-Commit-ID: Ho6N0diuWtE

--HG--
extra : rebase_source : ee4eb7068a68b118c7fe98e9e9e7fa9c9e7f13e2
2017-07-11 20:53:04 +09:00
Sebastian Hengst
adabab920b Backed out changeset ed18b5a361f9 (bug 1379098) for timing out in a11y's accessible/tests/mochitest/events/test_valuechange.html and browser-chrome's accessible/tests/browser/e10s/browser_caching_value.js. r=backout 2017-07-10 16:02:38 +02:00
Joanmarie Diggs
55edd4314f Bug 1379098 - ARIA combobox should map to AXComboBox. r=marcoz
Create a new internal role EDITCOMBOBOX so that we can distinguish
comboboxes with a text input (which is the case for the ARIA role)
from those which consist of only a popup button and associated list
(which is the case for the select element with a size of 1). Also
change the type of ARIA combobox from kGenericAccType to eCombobox
so that IsCombobox() will return true for both EDITCOMBOBOX and
COMBOBOX. Lastly, call IsCombobox() rather than role() when assigning
internal roles to descendants of comboboxes.
2017-07-10 04:26:00 +02:00
Rajesh Kathiriya
881bce09ea Bug 1374670 - Enabled the ESLint no-tabs rule across mozilla-central r=standard8
MozReview-Commit-ID: RT5QTipaOW

--HG--
extra : rebase_source : 84bccaeba083bc430316d3c80d5c8f56494f1950
2017-07-04 21:30:18 +05:30
Carsten "Tomcat" Book
b5c809a8bc merge mozilla-inbound to mozilla-central a=merge 2017-07-07 10:35:44 +02:00
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Wes Kocher
bfc45b98b9 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9XdoB5MuVz6
2017-07-05 17:17:41 -07:00
Wes Kocher
288405ee34 Merge inbound to m-c a=merge
MozReview-Commit-ID: LpxvieHR7VH
2017-07-05 17:10:43 -07:00
Joanmarie Diggs
6b905b817a Bug 1358462 - Elements with role="region" and no accessible name should be mapped according to host language. r=MarcoZ
Perform a sanity check in Accessible::ARIATransformRole() for the
internal REGION role: If there is no accessible name, transform
the ARIA role into the native host language role. Also perform
a sanity check when getting the AXSubrole in macOS: If the roleAtom
is nsGkAtoms::region, only return AXLandmarkRegion if the internal
role is REGION.
2017-07-04 18:24:00 -04:00
Aaron Klotz
6ac7e2f671 Bug 1378141: Make 32-bit a11y builds make more thorough checks to determine which manifest to load; r=eeejay
MozReview-Commit-ID: 6Hx7ggqt9Ck

--HG--
extra : histedit_source : 28db28e939c947361988cb8e3c8d7932787cf47e
2017-07-04 16:04:35 -07:00
Aaron Klotz
44e203215a Bug 1374792: Modify a11y handler to only invoke IGeckoBackChannel::put_HandlerControl once; r=eeejay
MozReview-Commit-ID: Bxo0IsAuhBh
2017-06-30 12:04:02 -07:00
Joanmarie Diggs
4cc658fc52 Bug 1378160 - The ARIA region role should be exposed as a landmark; not a pane. r=MarcoZ
Create a new internal REGION role which maps to the generic landmark role
of each platform accessibility API. Update the internal mapping of region
from roles::PANE and kGenericAccType to roles::REGION and eLandmark. Also
change the AXSubrole of region from "AXDocumentRegion" to "AXLandmarkRegion",
the latter being what is specified in the Core AAM 1.1 and used in Safari.
2017-07-04 18:10:00 -04:00
Carsten "Tomcat" Book
49921c11be Merge mozilla-central to autoland 2017-07-05 13:05:51 +02:00
Hemant Singh Patwal
046089eed8 Bug 1376347 - Enable the ESLint func-call-spacing, key-spacing, keyword-spacing, and no-trailing-spaces rules for accessible/ r=MarcoZ
MozReview-Commit-ID: AtUmUpOSvhi

--HG--
extra : rebase_source : a719fad7bb4c139ff73520b096a348a6eb5d6465
2017-07-04 18:57:02 +05:30
Ehsan Akhgari
ce9a186e32 Bug 1378015 - Rewrite aom/test_general.html so that it doesn't rely on hashtable enumeration order; r=MarcoZ 2017-07-04 11:05:11 -04:00
Frederik Braun
56838ddb04 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Aaron Klotz
a129f378f7 Bug 1377195: Remove redundant main thread activation context from a11y::PlatformChild; r=eeejay
--HG--
extra : rebase_source : f8ff2ab8ca7eaf7c0dea9b082af7180f1a6d9208
2017-06-29 10:47:15 -07:00
Alexander Surkov
bf02d77384 Bug 1372985 - ARIA owned children ordering may be incorrect. r=eeejay 2017-06-29 14:30:58 -04:00
Aaron Klotz
aa1f26657e Bug 1354077: Push a11y activation context during mscom::MainThreadRuntime initialization; r=jimm
MozReview-Commit-ID: CU17UPWI104
2017-06-27 11:28:41 -07:00
Aaron Klotz
091386062e Bug 1354077: Modify a11y platform initialization to select and enable appropriate IAccessible manifest; r=eeejay
MozReview-Commit-ID: 1ODOm4Vc4UH
2017-06-06 12:19:17 -06:00
Aaron Klotz
9db0de2b03 Bug 1354077: Add manifests for IAccessible variants: 32-bit and 64-bit; r=jimm
MozReview-Commit-ID: CoHASAsg5tf
2017-06-06 12:19:12 -06:00
Joanmarie Diggs
35af6f703f Bug 1355954 - Focusable separators should implement the accessible value interface. r=MarcoZ
Add eHasValueMinMaxIfFocusable to the ARIA role map so that we can
take the accessible element's interactive state into account when
determining if the value interface should be supported.
2017-06-28 07:11:00 -04:00
Sebastian Hengst
5b82b79d9c Backed out changeset 1cd9e27f0fa1 (bug 1351608) 2017-06-29 01:01:15 +02:00
Joanmarie Diggs
bc62a859db Bug 1358447 - Elements which do not support aria-checked="mixed" should not expose "checked" accessibility state. r=marcoz
Treat an author-provided value of "mixed" as the equivalent of "false" for
ARIA roles which do not support the "mixed" state on a given property.
2017-07-03 19:12:00 +02:00
Joanmarie Diggs
dd969f27d8 Bug 1356049 - Map ARIA figure role. r=marcoz
Add the figure role to the ARIA role map so that it's exposed on all
platforms. Expose "figure" as the AXRoleDescription for macOS.
2017-07-04 04:27:00 +02:00
Joanmarie Diggs
b66b7af7bc Bug 1355921 - Elements with a defined, non-false value for aria-current should expose ATK_STATE_ACTIVE. r=marcoz
Create states::CURRENT and add it to the list of "universal" (global)
ARIA states. Map states::CURRENT to ATK_STATE_ACTIVE and emit accessible
state-change notifications when the value of aria-current is modified.
2017-07-03 17:02:00 +02:00
Frederik Braun
9c64aee8c8 Bug 1351608 - Comment out existing violations to no-unsanitize rule. r=standard8
--HG--
extra : rebase_source : 41eb119fb189c4577fe64b114821b75d8781ad99
2017-06-28 12:50:38 -07:00
Aaron Klotz
d5cffb7895 Bug 1375590: Replace NS_ERROR + IPC_FAIL_NO_REASON with IPC_FAIL in DocAccessibleParent; r=eeejay
--HG--
extra : rebase_source : 3859abca294230d6bc7061ee8b807191790f822b
2017-06-27 11:52:55 -07:00
Carsten "Tomcat" Book
9abc7cd713 Merge mozilla-central to mozilla-inbound 2017-06-27 15:14:47 +02:00
Joanmarie Diggs
68f6fdc9bf Bug 1376303 - Expose aria-orientation via NSAccessibilityOrientationAttribute. r=MarcoZ
Add orientation() method to the macOS accessibility wrapper, mapping
states::Horizontal to NSAccessibilityHorizontalOrientationValue,
states::NSAccessibilityVerticalOrientationValue and the absence of
both to NSAccessibilityUnknownOrientationValue.
2017-06-27 05:26:00 -04:00
Carsten "Tomcat" Book
4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Alexander Surkov
acb19ed934 Bug 1369836 - ARIA owns relocated flag of accessible object may get out of sync with ARIA owns hash. r=eeejay 2017-06-26 20:20:40 -04:00
Joanmarie Diggs
0078007f2f Bug 1376121 - DPub ARIA footnote role should have AXSubrole AXApplicationGroup. r=MarcoZ
Add the missing mapping. No new test case because there is no means for
testing platform accessibility API mappings via mochitest.
2017-06-24 09:47:00 -04:00
Joanmarie Diggs
2ffc4eeb7d Bug 1376111 - Fix AXRoleDescription for ARIA heading role. r=MarcoZ
The AXRoleDescription should be "heading" not "AXHeading." Add a new
localized string and use it for roles::HEADING.
2017-06-26 00:43:00 -04:00
Bill McCloskey
f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Masatoshi Kimura
b515c9c804 Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
MozReview-Commit-ID: GF0YXDwfA14

--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Aaron Klotz
eb1c707d34 Bug 1375412: Strengthen ownership of a11y::LazyInstantiator when posting runnable back to main thread; r=eeejay
MozReview-Commit-ID: A0IdEfAs4q9
2017-06-23 13:03:33 -06:00
Eitan Isaacson
71c52fe020 Bug 1375348 - Include last role as a good role to recieve from child. r=davidb 2017-06-23 08:55:38 -07:00
Florian Quèze
c3a5e47cea Bug 1034599 - Convert remaining Promise.defer() uses to PromiseUtils.defer() or new Promise(), r=mconley. 2017-06-23 11:25:02 +02:00
Nicholas Nethercote
58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Nicholas Nethercote
f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Nicholas Nethercote
fe9268c4cd Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString

--HG--
extra : rebase_source : b37350642c58a85a08363df2e7c610873faa6e41
2017-06-20 19:19:05 +10:00
Joanmarie Diggs
1115881728 Bug 1375460 - "haspopup" AtkObject attribute missing if multiprocess enabled. r=surkov
Move the object attribute exposure of states::HASPOPUP from the ATK wrapper
code to the shared accessibility code. Call UniversalStatesFor() rather than
State() for performance.

--HG--
extra : rebase_source : e31c2d00da302538a7f6962d8f4dfd148a7d877e
2017-06-22 07:25:00 -04:00
Aaron Klotz
338586067c Bug 1375429: Ensure that a11y::LazyInstantiator::GetRootAccessible properly handles popup accessibles; r=eeejay
MozReview-Commit-ID: CFlNI1wXFG3
2017-06-22 13:35:52 -06:00
Eitan Isaacson
39a6c4774c Bug 1330765 - Only attempt to shutdown a11y if last XPC doc was just removed. r=surkov 2017-06-22 12:37:42 -07:00
Joanmarie Diggs
66ad9aca23 Bug 1375116 - RelationType::CONTAINING_WINDOW is not in the RelationTypeMap. r=surkov
Add RelationType::CONTAINING_WINDOW to the RelationTypeMap. Note that
there is no implementation for this RelationType in place yet, but this
addition will fix off-by-one bugs when mapping newly-added relation types
to platform accessibility APIs.
2017-06-21 09:28:00 -04:00
Joanmarie Diggs
2ba8ad9f9e Bug 1374697 - Add ATK support for aria-details and aria-errormessage. r=surkov
Add the new-to-ATK relation types to the ATK headers we maintain and
map those relation types to the internal equivalents. No new tests
because we have sufficient coverage for the internal relations and
currently lack a means to test platform accessibility API exposure.
2017-06-21 15:53:00 -04:00
Joanmarie Diggs
d8b6b99320 Bug 1355447 - Map non-false values of aria-haspopup to ATK_STATE_HAS_POPUP. r=surkov
Change the mapping of states::HASPOPUP from kNone to ATK_STATE_HAS_POPUP.
No new test added because there is not yet support for testing platform
accessibility API mappings via mochitest.

--HG--
extra : rebase_source : bdf50704fa23db29ec5d5b3cdc0b51c8e6466215
2017-06-22 04:34:00 -04:00
Aaron Klotz
f8ba76d1bc Bug 1375130: Add missing guard around call to LazyInstantiator::AccumulateTelemetry; r=bustage 2017-06-21 16:13:39 -06:00
Aaron Klotz
1cf49f3a1d Bug 1375130: Add missing return value check in a11y::LazyInstantiator call to GetClientExecutableName; r=eeejay
MozReview-Commit-ID: JAULVCzMn60
2017-06-21 15:22:34 -06:00
Carsten "Tomcat" Book
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Aaron Klotz
a4d74945cd Bug 1378818: Add MOZ_CRASHREPORTER guards around a11y::Compatibility code; r=eeejay
MozReview-Commit-ID: 6ASeCgJNPV
2017-07-06 13:59:14 -06:00
Bill McCloskey
6b3e84ed5f Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Aaron Klotz
eee899a8e2 Bug 1323069: Fix conflict between this bug and bug 1371274; r=bustage CLOSED TREE 2017-06-20 13:09:23 -06:00
Aaron Klotz
41cc65ce4d Bug 1323069: Add ability to detect and identify remote a11y clients, as well as lazily instantiate a11y; r=eeejay
MozReview-Commit-ID: FY5ZIValcp9
2017-06-19 20:57:35 -06:00
Aaron Klotz
a33d941b4e Bug 1374643: Use IID instead of REFIID for a11y::HandlerProvider::mTargetUnkIid; r=jimm
MozReview-Commit-ID: IMFMxhHsbp6

--HG--
extra : amend_source : 10f8b88b0ba538241b59e88ad145db7479d64c07
2017-06-20 12:32:21 -06:00
Joanmarie Diggs
132af70e13 Bug 1374316 - Add aria-readonly to several roles as per ARIA 1.1. r=surkov
In ARIA 1.1, aria-readonly became a supported property of switch,
menuitemcheckbox, menuitemradio, and radiogroup.

aria-checked is not, and has not been, a supported property of menuitem.
This property should only be supported on checkable subclasses of the
ARIA menuitem role, namely menuitemcheckbox and menuitemradio.
2017-06-19 11:09:23 -04:00
Joanmarie Diggs
ee236a6c7f Bug 1357042 - Implement or update support for exposure of aria-orientation. r=surkov
In ARIA 1.1, "undefined" was added as a possible value of aria-orientation,
and the default value for the combobox and treegrid roles. Therefore, remove
states::VERTICAL from the nsRoleMapEntry for these two roles and update the
associated mochitest expectations. The rest of the ARIA roles which support
aria-orientation have the correct defaults and test coverage.
2017-06-20 05:32:00 +02:00
Carsten "Tomcat" Book
ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Wes Kocher
57da9036bb Merge inbound to central, a=merge
MozReview-Commit-ID: KZoJHLFuTwT
2017-06-19 17:30:02 -07:00
Joanmarie Diggs
638636b4ef Bug 1373786 - Mapping of "article" role and element is incorrect for AX API and ATK. r=surkov 2017-06-16 16:07:23 -04:00
Joanmarie Diggs
88ed2a9207 Bug 1358417 - Use ATK_ROLE_DESCRIPTION_TERM for "term" role and "dt" element. r=surkov 2017-06-16 14:02:55 -04:00
Joanmarie Diggs
8f7067dc67 Bug 1355423 - Fix AtkRole and AXSubrole for ARIA treeitem. r=surkov 2017-06-16 12:15:45 -04:00
Eitan Isaacson
109fff34b9 Bug 1366374 - Check if AccessibleHandler.dll is registered before using. r=aklotz 2017-06-15 15:55:06 -07:00
Carsten "Tomcat" Book
5e8c1546ec merge mozilla-inbound to mozilla-central a=merge 2017-06-14 14:45:26 +02:00
Joanmarie Diggs
c306e05c88 Bug 1343537 - Implement ARIA DPUB extension. r=surkov
--HG--
extra : rebase_source : 38af7ac790cb60d952b1dc2885f50fc9c15cdea6
2017-06-13 15:06:08 -04:00
Wes Kocher
ebf35623cd Merge mozilla-central to autoland a=merge
UPGRADE_NSS_RELEASE
2017-06-13 18:57:32 -07:00
Rajesh Kathiriya
6d3eb2c851 Bug 1370232 - Enabled the ESLint no-unneeded-ternary rule across mozilla-central. r=standard8
MozReview-Commit-ID: AH9ArRkjh78

--HG--
extra : rebase_source : bdd4c4f8a4779ea373479a9cba772c036e00e816
2017-06-13 00:23:54 +05:30
Wes Kocher
3ee39c3f47 Backed out 3 changesets (bug 1354077) for assertions in AccessibleWrap.cpp a=backout CLOSED TREE
Backed out changeset 1380fe0f701b (bug 1354077)
Backed out changeset 2b5602bd352a (bug 1354077)
Backed out changeset a0fc3a1a9122 (bug 1354077)

MozReview-Commit-ID: ABHV3evXKrG
2017-06-12 16:54:10 -07:00
Eitan Isaacson
142accc844 Bug 1369890 - Port mochitest/scroll/test_zoom_text.html to browser test. r=surkov 2017-06-12 14:37:55 -07:00
Eitan Isaacson
94ba765cd7 Bug 1372315 - Encode data URIs to base64 in accessibility browser tests. r=surkov 2017-06-12 14:37:50 -07:00
Aaron Klotz
da19e2296f Bug 1354077: Modify a11y platform initialization to select and enable appropriate IAccessible manifest; r=eeejay
MozReview-Commit-ID: 1ODOm4Vc4UH

--HG--
extra : rebase_source : 6bac99f6e5e6318cf856f860edb373930979c92a
2017-06-06 12:19:17 -06:00
Aaron Klotz
05e5a2e310 Bug 1354077: Add manifests for IAccessible variants: 32-bit and 64-bit; r=jimm
MozReview-Commit-ID: CoHASAsg5tf

--HG--
extra : rebase_source : 84e30f4601c5f628cc731e1796601381cc012b6c
2017-06-06 12:19:12 -06:00
Sebastian Hengst
e960099899 Backed out changeset 76fcf40c564b (bug 1369890) for failing accessible/tests/browser/e10s/browser_caching_name.js on Linux and accessible/tests/browser/scroll/browser_test_zoom_text.js on Windows 7. r=backout 2017-06-12 19:47:24 +02:00