Commit Graph

111 Commits

Author SHA1 Message Date
Eitan Isaacson
67c11960cc Bug 686400 - Delay accessible removal on frame reconstruction. r=Jamie,emilio
We naively remove and then recreate accessibles when their content's
frame is reconstructed. By delaying the removal until we are certain the
content does not have a new layout frame, we can cut down on redundant
recreations.

When reconstructed content is re-inserted we can check it and its
subtree for missing frames and prune those accessibles from the tree.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 22:13:28 +00:00
Marco Zehe
b999f08200 Bug 1568360 - Don't calculate the accessible names for table or grid rows unless they have an explicit ARIA role, r=Jamie
Previously, we would always calculate the name for tr elements from their descendants unconditionally. Assistive technologies aren't using this information, moreover, it causes problems if the name gets too long, for example in layout tables.

We now only calculate the name if the tr element has an explicit ARIA role.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 09:14:55 +00:00
Victor Porof
058dce8bba Bug 1561435 - Format accessible/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : e786ed0773342d7c897007bb1be5a101945b894a
2019-07-05 09:45:34 +02:00
L. David Baron
7e9c9d9319 Bug 1474771 - Adjust accessibility test_list.html to deal with frames having NS_FRAME_IS_DIRTY more often. r=Jamie
`NS_FRAME_IS_DIRTY` being set on a frame has always meant that that
frame and all of its descendants need to be reflowed.  What the main
patch on this bug is changing is when it gets propagated to descendants;
prior to that patch it gets propagated during reflow, whereas after the
patch it gets propagated when the bit is set.  This means that
`NS_FRAME_IS_DIRTY` is now (after the patch) a somewhat more reliable
indicator of whether a frame requires reflow than it was before.

However, this has a strange interaction with the particular sequence of
operations that test_list.html performs.  In particular, test_list.html:
 (1) makes a style change that requires reflow,
 (2) flushes style (but not layout), and
 (3) gets the name of an accessible whose layout was dirtied by the style change.

Getting this name ends up here:
```
nsTextFrame::GetRenderedText at layout/generic/nsTextFrame.cpp:9600
nsTextEquivUtils::AppendTextEquivFromTextContent at accessible/base/nsTextEquivUtils.cpp:127
nsTextEquivUtils::AppendFromAccessible at accessible/base/nsTextEquivUtils.cpp:174
nsTextEquivUtils::AppendFromAccessibleChildren at accessible/base/nsTextEquivUtils.cpp:162
nsTextEquivUtils::GetNameFromSubtree at accessible/base/nsTextEquivUtils.cpp:39
mozilla::a11y::Accessible::NativeName at accessible/generic/Accessible.cpp:1991
mozilla::a11y::HyperTextAccessible::NativeName at accessible/generic/HyperTextAccessible.cpp:1760
mozilla::a11y::Accessible::Name at accessible/generic/Accessible.cpp:149
mozilla::a11y::xpcAccessible::GetName at accessible/xpcom/xpcAccessible.cpp:245
NS_InvokeByIndex at xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:106
```

What the main patch in the bug has changed is whether this `nsTextFrame`
has the `NS_FRAME_IS_DIRTY` bit set at this point.  This means that
`GetRenderedText` will bail out without reporting the text, because the
frame is marked dirty.

On the assumption that this action -- getting accessible names while
frames are dirty -- is an artificial situation set up in the test and
not a real-world situation that we need to care about, I'm proposing
that we make the straightforward adjustment to the test:  flush layout
in addition to flushing style at step (2) above, so that the test works
again.  As long as that assumption is correct, I think this should be
fine.  (I'd note that this is the *only* test that breaks as a result of
the patch.)

If, on the other hand, we actually do care about what accessible names
return while layout state is dirty and reflow is needed, we should
probably improve `nsTextFrame::GetRenderedText` so that it can somehow
report useful state even when `NS_FRAME_IS_DIRTY` is set, or something
else more complicated.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 05:30:30 +00:00
Tim Nguyen
aba8c723e5 Bug 1556561 - Remove <children> usage from autocomplete binding. r=dao,surkov
Differential Revision: https://phabricator.services.mozilla.com/D33568

--HG--
extra : moz-landing-system : lando
2019-06-08 08:16:18 +00:00
Brian Grinstead
911776d674 Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 3` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:59:25 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Tim Nguyen
34cebfc0b6 Bug 1437641 - Remove numberbox binding and convert usages to input[type=number]. r=bgrins,dao
Differential Revision: https://phabricator.services.mozilla.com/D15882

--HG--
rename : toolkit/themes/shared/numberbox.css => toolkit/themes/shared/numberinput.css
extra : moz-landing-system : lando
2019-01-09 08:51:32 +00:00
Marco Zehe
2d841c76b1 Bug 1507365 - Allow labels inside toolbarbuttons to participate in accessible name calculation, r=Jamie
Toolbar buttons in XUL can now have labels inside them to provide the actual caption for the button. Adjust the accessibility module to allow label elements as acceptable children for the toolbarbutton element so the algorithm can pick up their text for the button's name.

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

--HG--
extra : moz-landing-system : lando
2018-11-22 05:57:48 +00:00
Paolo Amadini
4d52da3cb2 Bug 1429940 - Part 1 - Use the first "label" element instead of the one inside "caption" to describe the "groupbox" element. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D11793

--HG--
extra : rebase_source : eec887ae45eb1a2b1356cef2f6cbbf24a5427f39
2018-11-15 12:05:09 +00:00
Paolo Amadini
42c8938dfc Bug 1493844 - Part 2 - Remove the "caption" and "groupbox" bindings. r=bgrins,dao,jaws,johannh,surkov
Proper native "groupbox" styling depends on the structure of the XBL binding. By restyling the Page Info dialog, the native styling is now unused except for the Print Page Setup dialog on Windows. The native apperance is thus not applied by default anymore, and the "groupbox" element can just be used semantically for accessibility. The Print Page Setup dialog applies the native styling on its own in a way that still works on Windows.

The only other consumers of "groupbox" are the in-content Preferences pages and dialogs. These are updated to use simpler styles that don't depend on the binding structure.

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

--HG--
extra : rebase_source : af36d911980517f9b53036f4cd4f800c5e20ad22
2018-10-23 10:14:06 +01:00
Mark Banner
ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Alexander Surkov
ed5f3a33f3 Bug 1491210 - stop using nsIDOMXULLabeledControlElement, r=jamie 2018-09-19 09:06:31 +08: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
Jonathan Kingston
2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

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

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
dvarga
12f19b94e9 Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)

--HG--
extra : histedit_source : 6169c5ffe856266d3bc8b2ca32f4b67054c71bbe
2018-08-08 22:11:56 +03:00
Jonathan Kingston
c15f69d427 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

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

--HG--
extra : rebase_source : ccded0f06a0dc4567b827f42ee29f4b8954154fe
extra : amend_source : 94da8ecc053e56958fa4137d7e497362fa2c11f1
2018-08-08 20:05:30 +03:00
Andreea Pavel
f5c1119983 Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston
4ca581ffed Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

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

--HG--
extra : rebase_source : 4bb9e7feb0704239756e6e38623c0fea81669f7b
extra : amend_source : 9417f96547735fbdc55ea23666327a5cb86ac92f
2018-08-06 19:56:37 +03:00
Paolo Amadini
ce01b10ab3 Bug 1474108 - Convert listbox accessibility tests to use the "richlistbox" element. r=surkov
This prepares for the removal of the "listbox" element and binding.

MozReview-Commit-ID: G1OxRGBphmw

--HG--
extra : source : 65d7ca38bd086abe7df0e50e9e5a9ba1d70202c3
2018-07-17 17:58:37 +01:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Marco Zehe
1682e25e09 Bug 1453606 - Add tests for Accessible name and Description Computation spec test cases, r=surkov
MozReview-Commit-ID: 8vmdEF3Rm7V

--HG--
extra : rebase_source : 78fa6b0b5d97bb00f121becde9cf86ddf9434981
2018-04-12 13:28:26 +02:00
Eliza Balazs
004b044bd6 Bug 1429575 - Disable test_browserui.xul for frequent failure on linux. r=gbrown
--HG--
extra : rebase_source : 1b012fc9e10219f3c5e64a7e55f4e8febeca121d
2018-04-12 02:18:00 +03:00
Tim Nguyen
1d19015df5 Bug 1437302 - Fix width of textbox[type=number] consumers. r=Paolo, Neil Deakin
--HG--
rename : toolkit/themes/linux/global/numberbox.css => toolkit/themes/shared/numberbox.inc.css
extra : amend_source : d9161dc8d21b958488b7304849a5e8c164f660bb
2018-03-26 14:34:39 +02:00
Andrew Osmond
3b58cdf796 Bug 1408636 - Ensure accessibility tests pass regardless of image caching affecting whitespace. r=yzen 2018-02-07 07:27:28 -05: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
Cosmin Sabou
fdc83a94aa Merge inbound to mozilla-central r=merge a=merge 2017-11-21 00:01:02 +02: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
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
Gijs Kruitbosch
03f7acbb5c Bug 1408044 - fix miscellaneous tests that depended on about: existing, r=dao
MozReview-Commit-ID: EKsaFbRoBc4

--HG--
extra : rebase_source : 36497c95be10e307805a304e811a5b7a6bebebce
2017-11-15 17:19:33 +00:00
Dan Banner
7caa92d5d8 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01: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
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
Mark Banner
3e354c3b34 Bug 1360166 - Make accessible/ ESLint rules inherit from the mozilla/recommended configuration. r=surkov
MozReview-Commit-ID: GJs25x7vNgZ

--HG--
extra : rebase_source : 6f1c650a50f638dddf8b774931931d226ebbe26d
2017-04-27 11:53:38 +01:00
Paul Bignier
ff2e59d1cd Bug 1352802 - Typo fixes around 'accessible'. r=MattN
MozReview-Commit-ID: 27CyNOMXkRq

--HG--
extra : rebase_source : 30e8891fa40cb497ab695e72b179c850a3a5c8d9
2017-04-03 09:47:00 -07:00
Florian Quèze
9d62681259 Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws. 2017-03-08 10:17:52 +01:00
Phil Ringnalda
743062a026 Bug 1296784 - Disable test_markup.html on Windows debug for constant failures 2016-08-31 18:27:25 -07:00
Marco Zehe
6d3d2e75ef Bug 1248415 - Improve screen reader accessibility of various Preference panes groupbox labeling, r=surkov
--HG--
extra : rebase_source : c7942e48cc199f5c38d4da08a2b688e1072550e3
2016-05-18 07:10:49 +02:00
Chris Manchester
f7a1b3fb60 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Gijs Kruitbosch
af8ae4ede1 Bug 1216478 - prefer tooltiptext on a XUL element over title attribute on a containing toolbaritem when determining accessible name, r=surkov
MozReview-Commit-ID: Cv0Kl5U02jy

--HG--
extra : rebase_source : 40ff881eabb42579a25e22c6c290ce3c5d0e7634
2016-01-20 13:47:42 +00:00
Alexander Surkov
e368a67db6 Bug 1226000 - control may pick up its name from wrong label, r=yzen 2015-11-24 14:44:24 -05:00
Jon Morton
1700296f02 Bug 979835: Port BoxObject and its subclasses to WebIDL. r=khuey sr=bz
--HG--
rename : layout/xul/nsIPopupBoxObject.idl => dom/webidl/PopupBoxObject.webidl
rename : layout/xul/tree/nsITreeBoxObject.idl => dom/webidl/TreeBoxObject.webidl
rename : layout/xul/nsBoxObject.cpp => layout/xul/BoxObject.cpp
rename : layout/xul/nsBoxObject.h => layout/xul/BoxObject.h
rename : layout/xul/nsListBoxObject.cpp => layout/xul/ListBoxObject.cpp
rename : layout/xul/nsMenuBoxObject.cpp => layout/xul/MenuBoxObject.cpp
rename : layout/xul/nsPopupBoxObject.cpp => layout/xul/PopupBoxObject.cpp
2014-10-14 13:15:21 -07:00
Birunthan Mohanathas
b11d9d823f Bug 1044111 - Collapse test-only moz.build files under accessible/ into ancestor moz.build files. r=ted 2014-07-28 18:02:44 -07:00
Xidorn Quan
5b17a8fc75 Bug 966166 - Part 6: Tests for @counter-style. r=jfkthame, r=davidb 2014-06-11 21:14:00 -04:00
Alexander Surkov
e18f2c52b6 Bug 787858 - XUL textbox context menu inaccessible, r=tbsaunde 2013-12-07 16:37:04 -05:00
Takeshi Kurosawa
5c74e41f57 Bug 868789 - Name computation for SVG is wrong, r=tbsaude DONBUILT (fixing username) 2013-12-05 12:06:01 -05:00
Alexander Surkov
c30065c754 Backout (wrong username) Bug 868789 - Name computation for SVG is wrong, r=tbsaude 2013-12-05 11:59:18 -05:00