Граф коммитов

8529 Коммитов

Автор SHA1 Сообщение Дата
Joel Maher 2f2dc70492 Bug 1654553 - fix browser chrome tests to support Object.is instead of ==. r=gbrown,preferences-reviewers,Gijs,rpl
fix browser chrome tests to support Object.is instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D84539
2020-07-27 17:02:35 +00:00
Morgan Reschenberg 999fd665e0 Bug 1648813: Re-disable browser_webarea test for intermittent failures r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D84869
2020-07-27 13:24:06 +00:00
Eitan Isaacson 70a126786a Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-27 21:08:20 +00:00
Noemi Erli 45128aa910 Backed out changeset b698b2435396 (bug 1652809) for causing bustages in TraversalRule.h CLOSED TREE 2020-07-25 03:07:39 +03:00
Morgan Reschenberg 980b4228e6 Bug 1652809: Convert Pivot framework to use AccessibleOrProxy objects r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D83671
2020-07-24 20:56:00 +00:00
Mark Banner 10cbdaa642 Bug 1620537 - Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Differential Revision: https://phabricator.services.mozilla.com/D84818
2020-07-24 21:31:24 +00:00
Mihai Alexandru Michis 13e26846d7 Backed out changeset 47667fbae734 (bug 1654679) for causing failures in browser_text_input.js 2020-07-24 03:16:52 +03:00
Eitan Isaacson fd819b55c1 Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 21:31:35 +00:00
Dorel Luca 784df221cc Backed out changeset 8848caa5b125 (bug 1654679) for Browser-chrome failures in accessible/tests/browser/mac/browser_text_input.js. CLOSED TREE 2020-07-23 20:44:22 +03:00
Eitan Isaacson c4c117984b Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 16:29:19 +00:00
James Teh fa611658d4 Bug 1368270: When shutting down Windows AccessibleWraps, don't clear the id. r=MarcoZ
When an Accessible is shut down, there might still be external references to it, so we keep the instance alive.
We don't want to reuse the id until all references are released, so we only release the id in the destructor (which runs when all references are released).
Previously, we were clearing the id variable in Shutdown, which meant we couldn't release the id in the destructor!
This meant we always leaked ids, never reusing them.
Now, we don't clear the id in Shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D84653
2020-07-23 11:18:57 +00:00
Bogdan Tara c61d07ee89 Backed out changeset 290c72f07e0c (bug 1654679) for es lint failure on browser_text_input.js CLOSED TREE 2020-07-23 09:05:54 +03:00
Eitan Isaacson 089db2c536 Bug 1654679 - Add selected text marker range to text selection changed events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84616
2020-07-23 04:52:00 +00:00
Eitan Isaacson 6da8e46f49 Bug 1654444 - Check text change element on webarea dispatched text events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84551
2020-07-22 18:04:24 +00:00
Eitan Isaacson 6233e4868e Bug 1654601 - Ensure given text marker is valid in public API. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D84567
2020-07-22 18:08:10 +00:00
Morgan Reschenberg 7de6a01c17 Bug 1648813: Retreive iframe doc from top-level doc if load events are passed out of order. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D84250
2020-07-21 23:57:12 +00:00
Eitan Isaacson 7927ccf478 Bug 1653421 - Part 6: Introduce tests for text change events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84058
2020-07-21 23:03:04 +00:00
Eitan Isaacson 8216f98213 Bug 1653421 - Part 5: Add xpc mac event interface so we can include data. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84057
2020-07-21 23:03:02 +00:00
Eitan Isaacson 42dcf89b84 Bug 1653421 - Part 4: Pass data with text value change events. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84056
2020-07-21 23:03:00 +00:00
Eitan Isaacson 1d2bd5cd78 Bug 1653421 - Part 3: Don't normalize marker beyond editable root. r=morgan
When in an editable container, text markers are expected to not go past or before the editable root.

Differential Revision: https://phabricator.services.mozilla.com/D84055
2020-07-21 23:02:57 +00:00
Eitan Isaacson c52b49a014 Bug 1653421 - Part 2: Add attributed string for range getter. r=morgan
This doesn't actually add any attributes yet.
VoiceOver uses this instead of the plain string equivalent.

Differential Revision: https://phabricator.services.mozilla.com/D84054
2020-07-21 23:02:55 +00:00
Eitan Isaacson 66653fbad1 Bug 1653421 - Part 1: Refactor AccessibleWrap event handling. r=morgan
I split the switch statement into two: the first switch determines the
MOX target accessible. The second one does all the rest. This makes it more
readable and scalable when we add more events that need to be accompanied with
data.

Differential Revision: https://phabricator.services.mozilla.com/D84053
2020-07-21 23:02:53 +00:00
Morgan Reschenberg a707c0c636 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-21 20:41:55 +00:00
Eitan Isaacson cfcad506f6 Bug 1628236 - Add cell getter and column headers attribute to tables. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84249
2020-07-21 20:58:36 +00:00
Dorel Luca 560f272fda Backed out changeset a83d85107142 (bug 1628236) for OSX build bustage on mozTableAccessible.h. CLOSED TREE 2020-07-21 22:49:30 +03:00
Eitan Isaacson a024bafebe Bug 1628236 - Add cell getter and column headers attribute to tables. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84249
2020-07-21 16:43:28 +00:00
Eitan Isaacson 906483c74e Bug 1653039 - Add word at marker APIs. r=morgan
This patch adds several new parameters:
* AXLeftWordTextMarkerRangeForTextMarker
* AXRightWordTextMarkerRangeForTextMarker
* AXStartTextMarkerForTextMarkerRange
* AXEndTextMarkerForTextMarkerRange
* AXNextTextMarkerForTextMarker
* AXPreviousTextMarkerForTextMarker

Our word boundaries API is pretty buggy. Instead of trying to
resolve or triage each issue I found, I added todo tests
for them.

Differential Revision: https://phabricator.services.mozilla.com/D83680
2020-07-20 22:53:04 +00:00
James Teh 7821989f81 Bug 1420529: Don't fire immediate events on a DocAccessible whose tree isn't constructed yet. r=eeejay
For remote documents, the DocAccessibleChild isn't created until the tree is constructed.
This means we can't send events to the parent process and thus to the client.
We shouldn't fire these events in the first place, since this makes events inconsistent for local and remote documents.

Differential Revision: https://phabricator.services.mozilla.com/D83605
2020-07-19 22:46:33 +00:00
Marco Bonardo 9cba702385 Bug 1653611 - Make UrlbarProvider.cancelQuery optional. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D83974
2020-07-17 19:55:30 +00:00
Eitan Isaacson 47eeb74440 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-16 17:51:22 +00:00
Kashav Madan 46c04e90f2 Bug 1596738 - Don't focus the tab's content area for restores triggered by DocumentChannel process switches, r=dao,nika,mixedpuppy
This causes the browser to steal focus from any element that was focused prior
to the completion of the remoteness flip. This is particularly a problem for
fission because every cross-origin navigation requires a process switch.

This code is still necessary for "normal" session restores (see bug 1410591),
but focus is handled elsewhere for remote navigations.

Differential Revision: https://phabricator.services.mozilla.com/D82783
2020-07-15 23:09:09 +00:00
Simon Giesecke d3d071323d Bug 1652021 - Remove unnecessary includes from Accessible.h. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D83112
2020-07-15 13:46:02 +00:00
Simon Giesecke 96fb649d21 Bug 1652017 - Remove unnecessary includes for expensive nsIFrame.h. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83111
2020-07-15 13:44:39 +00:00
Csoregi Natalia d74107a680 Backed out changeset 99402617d852 (bug 1652211) for failures on test_tooltip.xhtml. CLOSED TREE 2020-07-15 07:06:48 +03:00
Eitan Isaacson a1dcb0fa34 Bug 1370669 - Don't queue redundant hide events. r=Jamie
An accessible can be hidden twice in a mutation event queue. With the first
time representing a move. Instead of queueing a second hide event,
simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D83373
2020-07-14 21:24:22 +00:00
Eitan Isaacson c43598ec97 Bug 1652211 - Create and destroy xul tooltips as they appear and go away. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D83408
2020-07-14 21:20:51 +00:00
James Teh 3b449c5301 Bug 1652439: Null check the root accessible when handling QueryService to SID_IAccessibleContentDocument in content processes. r=MarcoZ
Accessible::RootAccessible() returns null on the ApplicationAccessible.
We weren't null checking this previously, so QueryService for SID_IAccessibleContentDocument on the ApplicationAccessible in a content process would crash.
This is rare, but JAWS does sometimes trigger it.

Differential Revision: https://phabricator.services.mozilla.com/D83452
2020-07-14 04:55:56 +00:00
longsonr c2fc063be0 Bug 1652254 - Remove svg from some moz.build local includes r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D83247
2020-07-12 16:38:26 +00:00
James Teh 947ab30aca Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D83042
2020-07-13 01:32:33 +00:00
Harry Twyford f9ae9c43a1 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-12 21:55:25 +00:00
James Teh eee112f8f9 Bug 1647666: test_doc_busy.html: Handle the case where the busy change and not-busy change events are coalesced out of existence. r=yzen
Also removed debug logging, as well as about:blank check which turned out not to be the cause of the timeout.

Differential Revision: https://phabricator.services.mozilla.com/D82137
2020-07-12 14:56:23 +00:00
Csoregi Natalia af5cff556a Backed out 6 changesets (bug 1648468) for failures on test_keywords.js. CLOSED TREE
Backed out changeset 918db5010acb (bug 1648468)
Backed out changeset 91a4b5b593bf (bug 1648468)
Backed out changeset 3bded27be98e (bug 1648468)
Backed out changeset 60a36d4424df (bug 1648468)
Backed out changeset 1edf02398318 (bug 1648468)
Backed out changeset ebac9fb9da0d (bug 1648468)
2020-07-12 09:03:53 +03:00
Harry Twyford daefa9ecc0 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-12 02:28:07 +00:00
Razvan Maries 911baac099 Backed out 6 changesets (bug 1648468) for perma failures on browser_test_focus_urlbar.js. CLOSED TREE
Backed out changeset 60b6915e8037 (bug 1648468)
Backed out changeset fc7a6b8f84a2 (bug 1648468)
Backed out changeset 97c7475abf85 (bug 1648468)
Backed out changeset bb37a0821844 (bug 1648468)
Backed out changeset 10447a3e04ff (bug 1648468)
Backed out changeset 69a210ce0e9a (bug 1648468)
2020-07-12 01:31:42 +03:00
Harry Twyford ed82a86096 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-11 21:32:19 +00:00
Butkovits Atila 7c20974c02 Backed out changeset 54aff812a50b (bug 1650462) as requested by jya. 2020-07-11 15:46:30 +03:00
James Teh 8512a122d8 Bug 1650462: Don't include group descendants when calculating the acc name of treeitems. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D83042
2020-07-10 07:34:31 +00:00
James Teh ba7d805a62 Bug 1650590: A11y COM handler: Use CoTaskMemAlloc/Free for row/column header ids arrays when returned by IGeckoBackChannel::Refresh. r=MarcoZ
DynamicIA2Data can be built to be transmitted in two different ways:

1. As part of the payload included in the stream when an accessible is marshaled; or
2. As an out parameter returned by IGeckoBackChannel::Refresh().

DynamicIA2Data includes arrays for row/column header ids.
Normally, such arrays would be allocated by CoTaskMemAlloc and freed by CoTaskMemFree.
However, in the first case, the struct is actually marshaled by RPC encoding functions, not by COM itself.
This means we must use midl_user_allocate/free, lest we crash.
We previously used midl_user_allocate/free for the second case as well.
Unfortunately, it turns out that this too causes crashes.

To fix this, we now use different memory allocation functions depending on how the struct is transmitted.

This patch also cleans up the old DynamicIA2Data in the client before calling IGeckoBackChannel::Refresh.
Previously, we didn't do this, which would have resulted in a leak.

Differential Revision: https://phabricator.services.mozilla.com/D82823
2020-07-09 06:56:24 +00:00
Samuel Thibault 667bd111f3 Bug 1606721 - Fix crash on screen reader text requests with bogus offsets, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D82424
2020-07-08 22:46:28 +00:00
Samuel Thibault 08cdd6ddc7 Bug 1606721 - Fix crash on screen reader text requests with end offset smaller than -1, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D82324
2020-07-08 22:47:11 +00:00
Bogdan Tara 92d6c2f06f Backed out changeset 8d3a31f6fcd6 (bug 1643765) by morgan's request CLOSED TREE 2020-07-08 19:57:22 +03:00
Dorel Luca 2e8d3a633e Bug 1648813 - disable browser_webarea.js on macos opt builds. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D82254
2020-07-07 14:05:52 +00:00
Morgan Reschenberg 22c2b06956 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-06 19:24:19 +00:00
Razvan Maries 3b7f8e576f Backed out changeset e7c1f66e9ff4 (bug 1643765) for build bustages on MOXAccessibleProtocol.h. CLOSED TREE 2020-07-06 21:02:44 +03:00
Morgan Reschenberg 1a49e563e3 Bug 1643765: Add moxUnignoredChildren getter to MOXAccessibleBase r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80983
2020-07-06 17:31:15 +00:00
Eitan Isaacson 8b130be2bb Bug 1226473 - Support AXSelectedTextMarkerRange. r=morgan
To do this well we need to cache the text selection in the top level process.

Differential Revision: https://phabricator.services.mozilla.com/D82111
2020-07-06 17:32:45 +00:00
Eitan Isaacson e1559a9b24 Bug 1650740 - Don't allow text range retrieval when doc tree is not fully constructed. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D82410
2020-07-06 17:31:17 +00:00
Sylvestre Ledru caf785c695 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D82178
2020-07-04 09:38:43 +00:00
Eitan Isaacson 7b241c8028 Bug 1649575 - Part 6: Introduce browser test for basic text API. r=morgan.
Differential Revision: https://phabricator.services.mozilla.com/D81762
2020-07-02 21:24:58 +00:00
Eitan Isaacson 2f2f6eb3ee Bug 1649575 - Part 5: Implement string building for GeckoTextMarkerRange. r=morgan
This is a seperate patch because of the complexity.

Differential Revision: https://phabricator.services.mozilla.com/D81761
2020-07-02 21:57:55 +00:00
Eitan Isaacson ebff8f5ad8 Bug 1649575 - Part 4: Introduce GeckoTextMarker and GeckoTextMarkerRange. r=morgan
These classes do a few things:
1. They implement and abstract common text operations, for example:
 (a) comparing two markers to know which one precedes the other.
 (b) text retrieval for ranges
 (c) geometric bounds for ranges
 (d) etc.
2. They can be converted to and from AXTextMarker(Range)s. Since the AXTextMarker
should not contain a raw pointer since there is a potential for use-after-free,
we need to lookup the referenced accessible in its document to know that it still exists.

Note: mozTextAccessible got pushed to another unified source file, so we need to
declare some stuff for it. Ideally we would be detecting these kinds of things sooner.

Differential Revision: https://phabricator.services.mozilla.com/D81760
2020-07-02 21:35:05 +00:00
Eitan Isaacson 7c21778bfd Bug 1649575 - Part 3: Introduce MOXTextMarkerDelegate. r=morgan
The delegate is associated with accessible documents (either local or remote).

I made a separate protocol for all the text marker stuff as it really is a seperate API.

Differential Revision: https://phabricator.services.mozilla.com/D81759
2020-07-02 21:33:07 +00:00
Eitan Isaacson 82c3896e77 Bug 1649575 - Part 2: Wrap opaque NSObjects for testing. r=morgan
AXTextMarker and AXTextMarkerRange are opaque types that are not queried or
manipulated by the AT. For tests, we need to be able to retrieve them,
and pass them back.

This patch generalizes the wrapper we already had in nsIAccessibleMacInterface
and allows other types to be wrapped.

Differential Revision: https://phabricator.services.mozilla.com/D81758
2020-07-02 21:24:39 +00:00
Eitan Isaacson ec18c36609 Bug 1649575 - Part 1: Add comparators to AccessibleOrProxy. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81757
2020-07-02 21:24:32 +00:00
Eitan Isaacson 65ed33dc4e Bug 1649217 - Part 4: Update caret move event tests to support isSelectionCollapsed. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81914
2020-07-02 17:43:24 +00:00
Eitan Isaacson 970939c823 Bug 1649217 - Part 3: Support isSelectionCollapsed in caret moved xpcom iface. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81913
2020-07-02 17:43:21 +00:00
Eitan Isaacson 9abbad9091 Bug 1649217 - Part 2: Send isSelectionCollapsed for caret move in IPC. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81912
2020-07-02 18:08:52 +00:00
Eitan Isaacson 92abff2aee Bug 1649217 - Part 1: Add isSelectionCollapsed to AccCaretMoveEvent. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D81911
2020-07-02 17:43:09 +00:00
James Teh b9c87a600d Bug 1649253: Correctly assign an Android a11y id to OOP iframe documents. r=eeejay
The DocProxyAccessibleWrap for an OOP iframe document is always created before we know its parent.
Previously, this resulted in the document getting an id of -1, which is only valid for the root document.
It also broke subsequent assumptions once the parent was set later.

Because we don't have the parent in this case, we can't add the document's id to its parent's hash table.
To deal with this, we no longer add any document to its parent's hash table.
Instead, when finding an accessible by id, we just check the id of each child document before checking that child document's hash table.

Differential Revision: https://phabricator.services.mozilla.com/D81959
2020-07-02 17:20:38 +00:00
Eitan Isaacson 080acfd067 Bug 1635722 - Check node ipc docs before sending pivot boundaries. r=Jamie
The IPC docs of the first/last nodes are not guaranteed to exist. This
could happen early on when the child docs are still hanging and have not
yet been processed in the NotificationController.

Differential Revision: https://phabricator.services.mozilla.com/D81883
2020-07-01 23:09:51 +00:00
Simon Giesecke 9364b353d4 Bug 1648010 - Remove NS_NAMED_LITERAL_CSTRING and NS_NAMED_LITERAL_STRING macros. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80631
2020-07-01 08:42:31 +00:00
Simon Giesecke cd8b8939b9 Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
James Teh a14ee5ceec Bug 1631276 part 3: Don't return a descendant document in DocAccessibleChild::RecvChildAtPoint unless we're certain that document has been constructed in the parent process. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D81010
2020-06-25 16:11:07 +00:00
James Teh 06946181ec Bug 1631276 part 2: On non-Windows, have the parent process notify the content process when the DocAccessibleParent is constructed. r=eeejay
This is already handled in a different way on Windows.
For documents at the top level of their process (including OOP iframes), we can just set the flag rather than waiting for a message, since we can never get queries for such documents or descendants before parent process construction is complete.

Differential Revision: https://phabricator.services.mozilla.com/D81009
2020-06-29 18:12:44 +00:00
James Teh feb712c112 Bug 1631276 part 1: Move Set/GetIsConstructedInParentProcess into DocAccessibleChildBase. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D81008
2020-06-25 16:07:20 +00:00
James Teh c598f2c2a3 Bug 1647666: test_doc_busy.html: Log a11y events to help debug the intermittent timeout. r=MarcoZ
It seems the window location isn't the issue here at all.
Rather, we never get the expected a11y events.
So, let's try to find out what events we *do* get.

Differential Revision: https://phabricator.services.mozilla.com/D81478
2020-06-29 05:26:59 +00:00
James Teh bb33c7f919 Bug 1648341: Handle eHasValueMinMaxIfFocusable correctly in Accessible::Value. r=MarcoZ
Previously, this returned a value if the ARIA value rule was not eNoValue, which covered eHasValueMinMaxIfFocusable.
However, eHasValueMinMaxIfFocusable needs the focusable state to be checked.
Rather than checking the value rule directly, just use HasNumericValue(), which already knows how to handle this.

Differential Revision: https://phabricator.services.mozilla.com/D81483
2020-06-29 05:22:00 +00:00
Morgan Reschenberg 4891a7b86e Bug 1630292: Enusre we don't create accessibles for linebreaks. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80986
2020-06-26 18:04:39 +00:00
Morgan Reschenberg 117fa600ac Bug 1642707: Add web area class and attributes r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D80473
2020-06-26 04:00:49 +00:00
James Teh 9fff2a353f Bug 1647666: test_doc_busy.html: Log the window location so we can try to figure out why this is failing intermittently. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D80997
2020-06-25 04:27:01 +00:00
James Teh a047283d38 Bug 1647666: test_doc_busy.html: Handle the case where we get a load event for about:blank before the download prompt itself. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D80828
2020-06-24 09:30:14 +00:00
Eitan Isaacson cd63c02db9 Bug 1647828 - Block moxPerformPress selector on non-actionable nodes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D80712
2020-06-23 19:21:28 +00:00
Eitan Isaacson ccdf272301 Bug 1647483 - Add a TextRange getter to text selection change events. r=Jamie
This includes 3 changes:
1. Add a lazy ranges getter to AccTextSelChangeEvent.
2. Create an XPCOM interface for testing purposes.
3. Add IPDL bindings for passing ranges in e10s.

Differential Revision: https://phabricator.services.mozilla.com/D80556
2020-06-23 18:52:42 +00:00
Gijs Kruitbosch fca766666b Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-23 14:04:49 +00:00
James Teh 15c8945c91 Bug 1626851 part 2: Close the download prompt before finishing the test. r=MarcoZ
This is the actual fix.
Previously, we opened a download prompt, but we didn't close it.
This download prompt could sometimes get focus and prevent subsequent tests from getting focus.
Explicitly closing it should prevent this from happening.

Differential Revision: https://phabricator.services.mozilla.com/D80590
2020-06-23 05:45:47 +00:00
James Teh e378731208 Bug 1626851 part 1: Rewrite test_doc_busy.html to use promises. r=MarcoZ
It's just too difficult/confusing to mix a11y and non-a11y async stuff using eventQueue.
This patch should be functionally equivalent; it doesn't fix the bug.

Differential Revision: https://phabricator.services.mozilla.com/D80589
2020-06-23 05:43:30 +00:00
Kagami Sascha Rosylight 166f2891a2 Bug 1643464 - Part 1: Rename eLeft/eRight to ePrimary/eSecondary r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D80331
2020-06-19 18:02:41 +00:00
Eitan Isaacson 3267d4f31f Bug 1639048 - Don't traverse into labels. r=Jamie
Labels are often used as primary click targets for related inputs. If
they are styled to certain bounds, but contain overflowing text for a11y
with a color of "transparent", the synthesized click will happen outside
the bounds of the label.

If we skip text leafs with "color: transparent", we will skip labels
altogether. Instead, lets land on labels when traversing, and ignore
its subtree.

Differential Revision: https://phabricator.services.mozilla.com/D77898
2020-06-22 22:03:58 +00:00
Narcis Beleuzu aaf25b6782 Backed out changeset b408bd393d95 (bug 1639048) for gv-junit failures on test.AccessibilityTest.testCheckbox . CLOSED TREE 2020-06-22 23:41:28 +03:00
Eitan Isaacson 06217d0c54 Bug 1639048 - Don't traverse into labels. r=Jamie
Labels are often used as primary click targets for related inputs. If
they are styled to certain bounds, but contain overflowing text for a11y
with a color of "transparent", the synthesized click will happen outside
the bounds of the label.

If we skip text leafs with "color: transparent", we will skip labels
altogether. Instead, lets land on labels when traversing, and ignore
its subtree.

Differential Revision: https://phabricator.services.mozilla.com/D77898
2020-06-22 18:16:30 +00:00
Emilio Cobos Álvarez b9b9e38dd9 Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-22 09:45:40 +00:00
Dorel Luca d4c820fa0f Backed out changeset 3671a57712e4 (bug 1646780) for Browser-chrome failures in webrtc/browser_devices_get_user_media_tear_off_tab.js 2020-06-19 04:22:23 +03:00
Gijs Kruitbosch f457ccd655 Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-19 00:02:11 +00:00
Edgar Chen 4d53288bec Bug 1635784 - Part 1: IsRemoteTarget should take fission OOP iframe into account; r=smaug
And add IsTopLevelRemoteTarget for the original usage.

Differential Revision: https://phabricator.services.mozilla.com/D79441
2020-06-18 20:38:34 +00:00
Eitan Isaacson 29f8f3833e Bug 1645817 - Use overlay scrollbars win browser resolution test. r=kats
Using overlay scrollbars will avoid the need to account for the trimmed
space that is introduced after an overflowing zoom caused by scrollbars.

Differential Revision: https://phabricator.services.mozilla.com/D80102
2020-06-18 11:21:41 +00:00
Cosmin Sabou 65d75a47f3 Backed out changeset 299e19193e11 (bug 1646224) for causing font related failures. CLOSED TREE 2020-06-18 18:26:51 +03:00
Emilio Cobos Álvarez 090e3d2409 Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-18 13:55:03 +00:00
Emilio Cobos Álvarez 011d524740 Bug 1646336 - Don't unnecessarily lose precision in nsComputedDOMStyle. r=hiro
We're converting to nscoord in some places unnecessarily, reducing the
precision of the computed value we return.

This makes some tests unnecessarily fail if we change the base of
nscoord.

Differential Revision: https://phabricator.services.mozilla.com/D79996
2020-06-18 00:42:47 +00:00
James Teh 02ae717477 Bug 1630208 part 4: Re-enable accessible/tests/browser/hittest/browser_test_zoom_text.js. r=yzen
The intermittent leak has been fixed, so we can now re-enable this.

Differential Revision: https://phabricator.services.mozilla.com/D79782
2020-06-17 18:42:48 +00:00
James Teh 9d61ef8210 Bug 1630208 part 3: Clean up the remote XPC document accessible cache on shutdown. r=yzen
The cache should already be empty by this point unless there's a bug, but we should still clean up regardless.
Also, the hashtable itself was previously never cleaned up even if it was empty.

Differential Revision: https://phabricator.services.mozilla.com/D79781
2020-06-17 18:42:30 +00:00