Commit Graph

7249 Commits

Author SHA1 Message Date
Ciure Andrei
d3c2cc41fe Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-18 10:44:51 +03:00
Ehsan Akhgari
5d9d4af0cd Bug 1491574 - Part 2: Remove the XPCOM registration for nsPersistentProperties; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5950
2018-09-18 00:58:52 -04:00
Coroiu Cristina
40028657f0 Backed out 3 changesets (bug 1491574) for build bustage at builds/worker/workspace/build/src/netwerk/base/nsNetUtil.cpp on a CLOSED TREE
Backed out changeset 5390b485f7e4 (bug 1491574)
Backed out changeset 3d11b69de826 (bug 1491574)
Backed out changeset e7e8f3f70f8b (bug 1491574)
2018-09-18 07:10:20 +03:00
Ehsan Akhgari
d4f6bad00a Bug 1491574 follow-up: Address more of the review comment 2018-09-17 23:55:01 -04:00
Ehsan Akhgari
9b9060a876 Bug 1491574 - Part 2: Remove the XPCOM registration for nsPersistentProperties; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D5950
2018-09-17 22:05:34 -04:00
James Teh
6b89ed218b Bug 1331755: Refactor handling of accessibility focus in the URL bar so focus never moves to suggestions while the user is editing. r=Gijs,MarcoZ
When the user is editing the text in the URL bar (typing, backspace, etc.), the first suggestion is always selected.
Because accessibility clients require autocomplete items to be "focused", the code needs to differentiate between explicit selection (e.g. via down/up arrow) and auto selection (e.g. when typing).
Otherwise, the focus continually moves away from the text box while the user is typing, as was previously occurring.
This makes it very difficult for the user to edit text, particularly backspace/delete.

There was a previous attempt to handle this, but it was somewhat fragile and broke completely some time ago.
Now, rather than trying to handle this based on autocomplete events, it is handled in the input and key press events.
For input events, accessibility focus is forced back to the text box and further accessibility focus events are suppressed.
For down arrow, up arrow, etc. key presses, accessibility focus events for suggestions are enabled.
This makes it easier to understand and predict the user experience, rather than relying on underlying autocomplete implementation details.

This is tested using an accessibility browser test, which makes it easier to make assertions about accessibility focus.
This also means that if the underlying implementation details change (e.g. HTML + aria-activedescendant instead of XUL + DOMMenuItemActive events), this test should still be valid and allow us to catch regressions.

Differential Revision: https://phabricator.services.mozilla.com/D5987

--HG--
extra : moz-landing-system : lando
2018-09-18 05:10:35 +00:00
Jonathan Kew
6f42f167fb Bug 1490402 - Use UTF-8 strings (in place of UTF-16) for font family/face names in the system font list, to reduce memory footprint. r=lsalzman 2018-09-12 20:34:57 +01:00
Cosmin Sabou
6294a344fe Merge mozilla-central to mozilla-inbound. a=merge 2018-09-11 13:17:29 +03:00
Cosmin Sabou
c56ce0a961 Bug 1445513 - Disable accessible/tests/browser/tree/browser_aria_owns.js on all platforms for frequent failures. r=jmaher
--HG--
extra : rebase_source : 91f1ecfdbeae97fe8846052e0418758b9aa200d0
2018-09-11 12:29:26 +03:00
Marco Zehe
812e2003df Bug 1489934 - accessible/tests/browser/events/browser_test_docload.js calls waitForEvents incorrectly, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D5400

--HG--
extra : moz-landing-system : lando
2018-09-10 22:50:31 +00:00
Sylvestre Ledru
aa37bde79b Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan
This also includes moving some files to the regular format.

Differential Revision: https://phabricator.services.mozilla.com/D5249

--HG--
extra : moz-landing-system : lando
2018-09-07 14:47:51 +00:00
Tiberius Oros
b830a9d3a5 Merge inbound to mozilla-central. a=merge 2018-09-06 01:25:01 +03:00
Brian Grinstead
40796f9ec0 Bug 1488755 - Replace childNodes with children in test_tabbrowser.xul;r=yzen
For browser.xhtml childNodes includes whitespace nodes, while browser.xul
doesn't. This was done with other mochitests that load the browser window
in Bug 1482667.

Differential Revision: https://phabricator.services.mozilla.com/D5032

--HG--
extra : moz-landing-system : lando
2018-09-05 13:53:21 +00:00
Margareta Eliza Balazs
0a38d82d7b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-05 15:43:59 +03:00
Eliza Balazs
500ab718cc Bug 1421307 - Disable browser_shutdown_acc_reference.js on linux64 debug for frequent failures. r=jmaher 2018-09-05 05:28:00 +03:00
James Teh
5fad83caf4 Bug 1488109: If the focused element has aria-activedescendant and the target id is moved to another node, move accessible focus to the new target. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D4832

--HG--
extra : moz-landing-system : lando
2018-09-05 04:43:18 +00:00
Masayuki Nakano
56966c4975 Bug 1347040 - Prevent -Woverloaded-virtual of AccessibleWrap.h when __clang__ defined r=Jamie
Some classes of a11y are defined from both IUnknown and nsISupports.  Both of
them have QueryInterface().  So, one of them is overridden by a sub class
hides the other and this is warned by clang.   However, AccessibleWrap.h
prevents this warning since it's by design when the compiler is GCC.
So, it should do same thing when the compiler is clang.

Differential Revision: https://phabricator.services.mozilla.com/D4310

--HG--
extra : moz-landing-system : lando
2018-09-05 04:13:30 +00:00
Mark Banner
c6885f5391 Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop
This removes a number of references to rules that are now deprecated or removed from ESLint.

- no-native-reassign is replaced with no-global-assign
- no-spaced-func is replaced with func-call-spacing (where enabled)

Depends on D4944

Differential Revision: https://phabricator.services.mozilla.com/D4946

--HG--
extra : moz-landing-system : lando
2018-09-04 18:08:43 +00:00
Zibi Braniecki
096a9c36b0 Bug 1488286 - Use a dummy data: URI as a default URL for accessibility tests. r=mconley
--HG--
extra : rebase_source : e4f39a4c2db74b54ca3c378b87e9b366d555807a
2018-09-03 21:59:56 +01:00
Gijs Kruitbosch
ef7146a4be Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : rebase_source : e51b66bb18d0e600814b48d5cd3ec9d5dea3028a
extra : source : 96b5a88ac0041a1bd382a731749e1fca9aa911ed
2018-09-03 14:43:38 +01:00
James Teh
fca9213cd0 Bug 1322621: If aria-activedescendant is removed or changed to an invalid id while an element is focused, move accessible focus to the element itself. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D4732

--HG--
extra : moz-landing-system : lando
2018-08-31 07:00:59 +00:00
Eitan Isaacson
f8996dd01f Bug 1486887 - Use binding parent for input[type] retrieval. r=surkov 2018-08-31 15:11:00 +03:00
Dave Townsend
e63bb1c465 Bug 1487246: Enable the eslint no-sequences rule. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D4681

--HG--
extra : rebase_source : ae253571d7d47c4a113a98a8b7c29bf712a0d764
2018-08-29 16:15:33 -07:00
Dave Townsend
e1f6637191 Bug 1487246: Remove uses of comma sequences in linted code. r=Standard8
Two cases were hiding permanently failing tests. I've commented those out and
filed bug 1487431.

Differential Revision: https://phabricator.services.mozilla.com/D4680

--HG--
extra : rebase_source : 232fa6173de8844a9c47d59926ec8e39d0640ecd
2018-08-29 16:12:55 -07:00
Margareta Eliza Balazs
edc8edfcd7 Merge inbound to mozilla-central. a=merge 2018-08-31 12:23:17 +03:00
Margareta Eliza Balazs
5ddcd7b745 Backed out changeset 96b5a88ac004 (bug 1486824) for causing frequent failures e.g: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js a=backout 2018-08-31 12:17:27 +03:00
Gurzau Raul
6b4d87cf7c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-31 07:08:44 +03:00
Alexander Surkov
ef0cc6d04c Bug 1487313 - stop using nsIDOMXULLabelElement and nsIDOMXULDescriptionElement in a11y, r=jamie 2018-08-31 09:17:38 +08:00
Gijs Kruitbosch
9d70cb3843 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-30 15:07:36 +00:00
Narcis Beleuzu
1bb581bc8f Merge mozilla-central to inbound.
--HG--
extra : rebase_source : 063f3df7ad6d834fa3e72cd6825c31792716586b
2018-08-30 16:09:37 +03:00
Narcis Beleuzu
a4ec006bb0 Backed out changeset 4e195f7b2d6b (bug 1486824) for clipboard failures on OSX browser_editcontrols_update. a=backout 2018-08-30 15:59:59 +03:00
Gijs Kruitbosch
a8e2b8e702 Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466

--HG--
extra : moz-landing-system : lando
2018-08-29 17:58:25 +00:00
Paolo Amadini
5aaf848c8b Bug 1457218 - Part 3 - Remove the "menu-button" binding. r=surkov,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4531

--HG--
extra : rebase_source : 502aa0ff24d0e3d46ef60c7a14498e25c66d1c81
2018-08-29 14:04:25 +01:00
Alexander Surkov
e36505da67 Bug 1486671 - stop using nsIDOMXULCheckboxElement, r=jamie 2018-08-29 15:42:31 +08:00
Paolo Amadini
bfef02108d Bug 1457216 - Remove support for editable menulists. r=surkov,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D4306

--HG--
extra : rebase_source : e8b4946c8f657e2283bc96cb08de802493e3a826
2018-08-24 15:44:38 +01:00
Xidorn Quan
47b25bfcca Bug 1486329 - Fix some clang-cl warnings in accessible. r=eeejay
Specifically this fixes pessimizing-move warnings and some others.

Differential Revision: https://phabricator.services.mozilla.com/D4302

--HG--
extra : moz-landing-system : lando
2018-08-27 15:49:01 +00:00
Eitan Isaacson
dd36aade7d Bug 1485862 - Set correct text-input-type for input[type=number]. r=surkov 2018-08-24 13:34:00 +03:00
Tiberius Oros
2ee9341d01 Merge inbound to mozilla-central. a=merge 2018-08-24 12:43:45 +03:00
James Teh
2a8cad4bfc Bug 1479678: Fix incorrect start offset when retrieving accessible text attributes if the last spelling error is not within this accessible. r=surkov
When dealing with an editor which contains multiple accessibles, the previous spelling error range might be in a previous accessible, not the accessible currently being queried.
In this case, DOMPointToOffset will return the length of this accessible.
Previously, we weren't checking for this and were overriding the start offset of the returned range regardless, resulting in broken offsets.
Now, we leave the start offset alone in this case.

Differential Revision: https://phabricator.services.mozilla.com/D3960

--HG--
extra : moz-landing-system : lando
2018-08-24 03:08:28 +00:00
Kris Maglione
3a5c05e76f Bug 1484496: Part 5e - Convert remaining nsISimpleEnumerator users to use JS iteration. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D3733

--HG--
extra : rebase_source : c0fac176d7b3d840c4dbb14f8d95ccfc7f83a5a8
extra : histedit_source : a92c40117d0808a3ad68c972f622a7a42c9ae8ba
2018-08-18 18:13:14 -07:00
Eitan Isaacson
4cba5259d5 Bug 1484778 - Null-check scroll frame in DispatchScrollingEvent. r=surkov 2018-08-21 10:24:00 -04:00
Eitan Isaacson
57a25953a0 Bug 1483911 - Defer scrolling events until after ipc doc construction. r=Jamie 2018-08-20 15:51:00 +03:00
Joanmarie Diggs
7471d4968b Bug 1484248 - Accessible name calculation from label content should include cells. r=surkov
Change the name calculation rule of HTML 'table' element from eNoNameRule
to eNameFromSubtreeIfReqRule. That way the table won't get an accessible
name, but will be descended when building a name from a parent element's
contents.

--HG--
extra : rebase_source : 218aec9f90b0c420a5f6785e929e5512b6704567
2018-08-17 08:14:00 +03:00
Yura Zenevich
ff402b25e1 Bug 1481924 - use WINDOW_CONTENT_CHANGED instead of WINDOW_STATE_CHANGED when viewport changes to ensure accessible bounds are re-drawn correctly. r=eeejay, jchen
MozReview-Commit-ID: 92bKGZMwJkP
2018-08-17 09:46:55 -04:00
Eitan Isaacson
8d5dad89ed Bug 1479591 - Introduced accessibility scrolling event and interface. r=surkov 2018-08-15 13:07:00 -04:00
Cosmin Sabou
c2b1fcd31c Backed out changeset dad95d849302 (bug 1479591) for causing linux debug leaks and security issues. 2018-08-15 04:39:43 +03:00
Eitan Isaacson
0f281891a2 Bug 1479591 - Introduced accessibility scrolling event and interface. r=surkov 2018-08-14 11:46:00 +03:00
Daniel Varga
9355025fd5 Merge mozilla-central to mozilla-inbound 2018-08-14 01:09:48 +03:00
Ting-Yu Lin
48d02834a5 Bug 1482665 Part 2 - Remove nsPresContext::AppUnitsPerCSSPixel() and replace it with mozilla::AppUnitsPerCSSPixel(). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D3155
2018-08-13 14:29:28 -07:00
Adrian Wielgosik
be0c1a4f55 Bug 1481645 - Remove some redundant uses of do_QueryInterface. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2893

--HG--
extra : moz-landing-system : lando
2018-08-13 09:05:19 +00:00