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

7983 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe d1e6184f73 Bug 1585239 - Wait for accessibility document ready in iframe. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D55067

--HG--
extra : moz-landing-system : lando
2019-12-02 09:50:29 +00:00
Emilio Cobos Álvarez b84e83a317 Bug 1600454 - Fix build with --disable-accessibility. r=MarcoZ
The change to moz.build unveiled a couple unified build issues that I also had
to fix.

Depends on D55365

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

--HG--
extra : moz-landing-system : lando
2019-12-02 06:25:40 +00:00
James Teh 810a19673f Bug 1581719: Change QI assertion in AccessibleWrap::GetRemoteIAccessibleFor to a warning. r=MarcoZ
Sometimes, when running tests, fetching IDispatch for a remote IAccessible succeeds, but QueryInterface to IAccessible fails.
This is probably because the remote Accessible died between these two calls.
While we want to know about this in case of real problems in future, it usually doesn't indicate a problem, so make it a warning.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 06:13:55 +00:00
Emilio Cobos Álvarez 3c12d374bc Bug 1600362 - Cleanup IntersectionObserver. r=smaug
Initially this was going to be a simple cleanup: Remove some useless namespaces
here and there and so on, remove `using` statements from the header and so on.

But unfortunately, DOMIntersectionObserver.h (which is included in Element.h,
unnecessarily) ended up exposing `Element` unnamespaced to a lot of code, so I
had to fix that.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 20:39:36 +00:00
James Teh 5cef911f1e Bug 1572595: Make ARIA 1.0 combo boxes reachable with Talkback. r=MarcoZ
ARIA role="combobox" gets a Gecko role of EDITCOMBOBOX.
However, there are two kinds of ARIA comboboxes:

1. ARIA 1.0 comboboxes are contentEditable. Text is entered into the combobox itself.
2. ARIA 1.1 comboboxes are not contentEditable. Instead, they have a textbox child into which text is entered.

On Android, traversal skipped EDITCOMBOBOX Accessibles altogether.
This meant that while 1.1 comboboxes were accessible (because we'd walk inside and land on the textbox), 1.0 comboboxes were not.

We still don't want to land on 1.1 comboboxes because the container isn't useful to the user.
Therefore, only stop on EDITCOMBOBOX Accessibles which are editable.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 10:11:28 +00:00
James Teh 4cfde48bec Bug 1566878: Android a11y: Don't expose <a> elements with no href or onclick as links. r=MarcoZ
Gecko's link role is used even for <a> elements without href or onclick.
Actionable links are indicated using the linked state.
However, Android doesn't have a concept equivalent to the linked state.
Thus, on Android, we must not expose an element as a link at all if it does not have the linked state.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 05:47:12 +00:00
James Teh c78008bc74 Bug 1600170: accessible/tests/mochitest/text/test_atcaretoffset.html: Set scrollbar-width: none on wrapped textarea. r=MarcoZ
Previously, due to bug 33654, we incorrectly added the width of the scrollbars to the textarea.
This was causing lines to be limited to 6 characters on ubuntu 18.04, even though we set cols="5" and thus expect 5 characters.
Setting scrollbar-width: none on the textarea works around this.

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

--HG--
extra : moz-landing-system : lando
2019-11-29 05:37:16 +00:00
Taylor 8dd88406ce Bug 1577073 - accessible/tests/mochitest/role/test_aria.html contains XHTML even though the file is HTML. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D55208

--HG--
extra : moz-landing-system : lando
2019-11-29 01:18:07 +00:00
James Teh 8d5f485ca6 Bug 1572677: Correct a11y exposure for HTML elements with associated XUL labels. r=MarcoZ
A XUL <label control="id"> can refer to an HTML element.
Keyboard and mouse support for this already works, but previously, this wasn't being exposed via accessibility APIs.

1. Split the code to get the name from an associated XUL label out of Accessible::XULElmName into a new function Accessible::NameFromAssociatedXULLabel.
2. Use NameFromAssociatedXULLabel for HTMl elements.
3. Update AccessKey and RelationByType to support HTML elements with associated XUL labels.
4. Rename accessible/tests/mochitest/actions/test_keys_menu.xhtml to test_keys.xhtml so it can cover accessKey outside of menus.
5. Add tests.

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

--HG--
rename : accessible/tests/mochitest/actions/test_keys_menu.xhtml => accessible/tests/mochitest/actions/test_keys.xhtml
extra : moz-landing-system : lando
2019-11-28 06:36:04 +00:00
Sylvestre Ledru 8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Masayuki Nakano 20699e2189 Bug 1597679 - part 2: Make `nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` r=smaug
Sub classes of `nsITextControlElement` are only `HTMLInputElement` and
`HTMLTextAreaElement`. And both base class is
`nsGenericHTMLFormElementWithState`.  Therefore, we can make
`nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` and
make `HTMLInputElement` and `HTMLTextAreaElement` inherit
`nsITextControlElement`.  Then, we can get rid of a lot of QI between
`nsINode`/`nsIContent`/`Element` and `nsITextControlElement` (and note that
some of them in a hot path).

Additionally, this patch renames `nsITextControlElement` to
`mozilla::TextControlElement`.

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

--HG--
rename : dom/html/nsITextControlElement.h => dom/html/TextControlElement.h
extra : moz-landing-system : lando
2019-11-25 06:35:15 +00:00
Coroiu Cristina 84bf2b6d25 Backed out 3 changesets (bug 1597679) for Android debug build bustage at build/src/dom/base/nsContentAreaDragDrop.cpp
Backed out changeset 6a73b58e0db4 (bug 1597679)
Backed out changeset 90a172eff2de (bug 1597679)
Backed out changeset d4a156cf28ff (bug 1597679)

--HG--
rename : dom/html/TextControlElement.h => dom/html/nsITextControlElement.h
2019-11-24 09:02:53 +02:00
Masayuki Nakano eea1784f2d Bug 1597679 - part 2: Make `nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` r=smaug
Sub classes of `nsITextControlElement` are only `HTMLInputElement` and
`HTMLTextAreaElement`. And both base class is
`nsGenericHTMLFormElementWithState`.  Therefore, we can make
`nsITextControlElement` inherit `nsGenericHTMLFormElementWithState` and
make `HTMLInputElement` and `HTMLTextAreaElement` inherit
`nsITextControlElement`.  Then, we can get rid of a lot of QI between
`nsINode`/`nsIContent`/`Element` and `nsITextControlElement` (and note that
some of them in a hot path).

Additionally, this patch renames `nsITextControlElement` to
`mozilla::TextControlElement`.

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

--HG--
rename : dom/html/nsITextControlElement.h => dom/html/TextControlElement.h
extra : moz-landing-system : lando
2019-11-24 05:38:02 +00:00
James Teh a984f604fe Bug 1587557: When activating an HTML text field via a11y APIs, if it already has focus, simulate a click. r=MarcoZ
Previously, HTMLTextFieldAccessible::DoAction just called TakeFocus().
When the field already has focus, TakeFocus() will do nothing.
However, the user might be activating this element because they dismissed a touch keyboard and want to bring it back.
Therefore, we must simulate a click so Gecko will bring up the keyboard.

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

--HG--
extra : moz-landing-system : lando
2019-11-21 10:42:36 +00:00
Yura Zenevich a9fe1ad538 Bug 1594585 - add coverage for b-c tests that run in in-process iframes. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D53654

--HG--
extra : moz-landing-system : lando
2019-11-20 02:31:07 +00:00
Yura Zenevich 8f94829eb1 Bug 1594585 - update wording across accessible b-c tests to differentiate between fission and iframe. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D53653

--HG--
extra : moz-landing-system : lando
2019-11-20 01:24:37 +00:00
James Teh 135e99b607 Bug 1597043: RootAccessible::ProcessDOMEvent: Return early if AsXULMultiSelectControl() on a XUL tree element fails. r=MarcoZ
This really shouldn't be possible.
All XUL trees should have nsIDOMXULMultiSelectControlElement, and the tree is focused at this point, so it shouldn't be dying.
Nevertheless, this sometimes happens in the wild and was causing crashes.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 05:42:28 +00:00
James Teh 2ed860b51f Bug 1221256: Implement IAccessible::put_accValue for editable text. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D53378

--HG--
extra : moz-landing-system : lando
2019-11-18 05:38:35 +00:00
Marco Zehe 78545b8343 Bug 982125 - make HTML5 <mark> accessible, r=Jamie
Mark the html:mark element to the new ROLE_MARK, which currently maps the same as role_text, and the xml-role of "mark", make sure we expose the roleDescription on Mac, and adjust the test so it tests that the attributes don't pick up any unexpected color for this particular element. So, the background attribute is empty when there is no unexpected, non-default background color.

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

--HG--
extra : moz-landing-system : lando
2019-11-18 05:34:15 +00:00
Emilio Cobos Álvarez 96429549f0 Bug 1596768 - Remove GetBindingParent() in HTMLFormControlAccessible. r=surkov
This code doesn't want to deal with Shadow DOM but with <input type=number> and
such native-anonymous inputs. So do that explicitly.

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

--HG--
extra : moz-landing-system : lando
2019-11-16 10:15:26 +00:00
Tim Nguyen 9d40766fe5 Bug 1596193 - Replace outdated references to XUL textbox. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D53177

--HG--
extra : moz-landing-system : lando
2019-11-15 13:35:14 +00:00
Yura Zenevich 5aa1656c01 Bug 1543575 - add fission specific accessibility tests. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D48583

--HG--
extra : moz-landing-system : lando
2019-11-14 14:53:49 +00:00
James Teh f6c5c02224 Bug 1594337: When dismissing a pop-up or the menu bar, if focus is inside an OOP iframe, restore a11y focus inside the iframe. r=yzen
Previously, we only restored focus within the top level remote browser.
This is fine for remote documents without iframes or only in-process iframes, as was the case with e10s.
For Fission, if an OOP iframe has focus, we need to get the appropriate nested remote browser.
Fortunately, BrowserParent::GetFocused was introduced to do exactly this.

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

--HG--
extra : moz-landing-system : lando
2019-11-13 16:01:02 +00:00
Tim Nguyen e9cf7725cf Bug 1576946 - Rewrite and remove tests relying on `display: -moz-stack;`. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D49485

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:06 +00:00
Dorel Luca 3e49706d2a Backed out changeset a79182facdfb (bug 1543575) for Browser-chrome failure in tools/profiler/tests/browser/browser_test_profile_single_frame_page_info.js 2019-11-10 07:24:03 +02:00
Yura Zenevich e34d04af1f Bug 1543575 - add fission specific accessibility tests. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D48583

--HG--
extra : moz-landing-system : lando
2019-11-09 00:35:09 +00:00
Csoregi Natalia ae540d8dd5 Backed out changeset f5a86c52bec6 (bug 1543575) for failures on browser_hidden_iframe.js. CLOSED TREE 2019-11-08 22:49:33 +02:00
Yura Zenevich fa358b33e6 Bug 1543575 - add fission specific accessibility tests. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D48583

--HG--
extra : moz-landing-system : lando
2019-11-08 18:44:10 +00:00
James Teh 2a10f4812f Bug 1593396: If the content of an embed or object element changes to be web content, recreate as an OuterDocAccessible. r=MarcoZ
If an embed or object doesn't specify a URL (or specifies a URL which isn't web content), it won't be created as an OuterDocAccessible.
For example, an embed with no src will be created as a generic HyperTextAccessible.
If the URL later changes to refer to web content, we must recreate as an OuterDocAccessible.
Previously, we didn't recreate, which was causing an assertion and may have caused other strange issues as well.

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

--HG--
extra : moz-landing-system : lando
2019-11-08 05:49:46 +00:00
James Teh b992db08f1 Bug 1594623: Suppress focus events for OuterDocAccessibles to prevent incorrect reporting for OOP iframes. r=yzen
An OuterDoc shouldn't get accessibility focus itself.
Focus should always go to something inside it.
However, OOP iframes will get DOM focus because their content isn't in this process.
We now suppress the OuterDoc focus in this case.
The OOP browser will fire focus for the correct Accessible inside the embedded document.
Without suppression of the OuterDoc focus, the two focus events will race and the OuterDoc focus may override the correct embedded focus for accessibility clients.
Even if they fired in the correct order, clients may report extraneous focus information to the user before reporting the correct focus.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 20:32:46 +00:00
Alexander Surkov 25df793e05 Bug 1589170 - add a test for accessible element insertion under shadow DOM of inaccessible element r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D52206

--HG--
extra : moz-landing-system : lando
2019-11-07 18:42:26 +00:00
James Teh 4a0ed4f097 Bug 1581040: handle late creation/re-creation of OuterDocAccessible for OOP iframe. r=yzen,nika
1. When creating a DocAccessibleParent for an embedded document in an OOP iframe, it's possible that the embedder accessible hasn't been set yet.
    This can occur if the iframe is initially hidden.
    Previously, we incorrectly set the document up as a top level document (e.g. tab document) in this case.
    Now, we set up the document as top level in its content process, set up the proxy, etc.
    The document will be added to its child document later when the embedder is set.

2. When setting the embedder accessible for an OOP iframe, check if the embedded DocAccessibleParent already exists.
    This can happen if an iframe is hidden and then shown or an iframe is reflowed by layout.
    If it already exists, add the embedded (child) document to its embedder.

3. Mac's implementation of ProxyCreated requires that AddChildDoc be called *before* ProxyCreated so it can invalidate the native children of the parent.
    Because it's possible for an OOP iframe document to be added to its embedder after the document is created, we can't satisfy this requirement for OOP iframe documents.
    Therefore, we now allow a null parent in Mac's ProxyCreated and use the reorder event fired later to invalidate the native children.

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

--HG--
extra : moz-landing-system : lando
2019-11-07 00:38:59 +00:00
James Teh fa1fd5ca07 Bug 1593892: Fire OOP iframe reorder events on all platforms, not just Windows. r=yzen
Previously, this code was unintentionally inside a Windows ifdef.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 00:36:45 +00:00
Brendan Dahl eafc9e3293 Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-05 17:56:28 +00:00
Andrew Creskey b491100580 Bug 1593104 - Fixes to issues encountered when building on Android with optimization r=Jamie
We noticed a handful of linker errors when building with other build optimization flags  -Os, -O2, and -O3 instead the default, -Oz.
(see Bug 1591725).
This change is intended to be 0-impact on functionality -- simply resolving the linker errors.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 13:05:06 +00:00
Cosmin Sabou e7966b8b03 Backed out changeset ac4242e7f029 (bug 1581040) for causing browser chrome crashes @mozilla::a11y::ProxyCreated. CLOSED TREE 2019-11-05 10:39:48 +02:00
Mihai Alexandru Michis b819bd25aa Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
2019-11-05 09:24:26 +02:00
Brendan Dahl 0c0da7791e Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 23:37:31 +00:00
James Teh 28a8c82da1 Bug 1581040: handle late creation/re-creation of OuterDocAccessible for OOP iframe. r=yzen,nika
1. When creating a DocAccessibleParent for an embedded document in an OOP iframe, it's possible that the embedder accessible hasn't been set yet.
    This can occur if the iframe is initially hidden.
    Previously, we incorrectly set the document up as a top level document (e.g. tab document) in this case.
    Now, we set up the document as top level in its content process, set up the proxy, etc.
    The document will be added to its child document later when the embedder is set.

2. When setting the embedder accessible for an OOP iframe, check if the embedded DocAccessibleParent already exists.
    This can happen if an iframe is hidden and then shown or an iframe is reflowed by layout.
    If it already exists, add the embedded (child) document to its embedder.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 05:44:34 +00:00
Ciure Andrei 64cfc71bcd Backed out changeset 967bb08714f9 (bug 1581040) for causing build bustages CLOSED TREE 2019-11-05 07:23:01 +02:00
James Teh f0676dcb3a Bug 1581040: handle late creation/re-creation of OuterDocAccessible for OOP iframe. r=yzen,nika
1. When creating a DocAccessibleParent for an embedded document in an OOP iframe, it's possible that the embedder accessible hasn't been set yet.
    This can occur if the iframe is initially hidden.
    Previously, we incorrectly set the document up as a top level document (e.g. tab document) in this case.
    Now, we set up the document as top level in its content process, set up the proxy, etc.
    The document will be added to its child document later when the embedder is set.

2. When setting the embedder accessible for an OOP iframe, check if the embedded DocAccessibleParent already exists.
    This can happen if an iframe is hidden and then shown or an iframe is reflowed by layout.
    If it already exists, add the embedded (child) document to its embedder.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 05:02:38 +00:00
Dorel Luca 0207ce5451 Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl 247b257cfa Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00
James Teh 18ef8b89a3 Bug 1590929: a11y::TraversalRule::Match: Don't assume that all Accessibles have a frame. r=MarcoZ
I don't have a test case for this crash, but the stack suggests the frame is null.
This can certainly happen for display: contents.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 07:04:40 +00:00
Edgar Chen acd2114113 Bug 1580491 - Use Element::HasNonEmptyAttr in various places; r=bzbarsky
This was done by reviewing the results of
https://searchfox.org/mozilla-central/search?q=%2F*GetAttr%5C(.%2B(%26%26%7C%5C%7C%5C%7C)&case=true&regexp=true
one by one and replacing them with Element::HasNonEmptyAttr if possible.

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

--HG--
extra : moz-landing-system : lando
2019-11-01 15:24:25 +00:00
Yura Zenevich 7c914dd2e8 Bug 1543575 - add coverage for bounds b-c tests with fission enabled. r=Jamie
Depends on D51144

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

--HG--
extra : moz-landing-system : lando
2019-10-31 00:10:03 +00:00
Yura Zenevich 4a00d94bad Bug 1543575 - add missing resources to browser.ini files to be able to run b-c a11y tests independently. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D51144

--HG--
extra : moz-landing-system : lando
2019-10-31 00:07:58 +00:00
Ehsan Akhgari 5b7ceaf11d Bug 1528115 - Remove support for the hidden private window; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D51099

--HG--
extra : moz-landing-system : lando
2019-10-30 15:35:31 +00:00
James Teh 7d0494adc2 Bug 1585851: When processing a11y insertions, don't try to move an accessible if its new previous sibling hasn't been moved into its new container yet. r=MarcoZ
Sometimes, depending on how children were changed, children might be in the insertion list out of order; e.g. [child2, child1].
It's also possible that an earlier child (child1 in the above example) is being moved out of another container.
When processing the earlier insertion (child2), we'll determine we need to move it within its parent and will fetch its new previous sibling so we can move it into the right place.
However, in this case, the new previous sibling (child1) will be in the wrong container.
We can't move in that case; the new previous sibling's index in parent will obviously be wrong, since it's relative to the wrong container.
Therefore, we just skip the move.
Since the previous sibling (child1) is later in the insertion list, the ordering will be corrected when we process that insertion.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 06:32:50 +00:00
James Teh 7dfabe9989 Bug 1415667: Always use OuterDocAccessible for iframes, even if an ARIA table role is specified. r=yzen
OuterDocAccessible has some special behaviour.
We really shouldn't try to use some other class for iframes.
Anyway, making an iframe part of an ARIA table won't work for other reasons, plus I'm not sure it makes much sense.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 14:26:49 +00:00