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
Eitan Isaacson
661bd00c42
Bug 1506514 - Don't create accessibles for unselected deck panel descendants. r=Jamie
...
Differential Revision: https://phabricator.services.mozilla.com/D31656
--HG--
extra : moz-landing-system : lando
2019-05-20 15:54:56 +00:00
Masayuki Nakano
d8d0bcab65
Bug 1543013 - part 2: Make accessible use mozilla::PresShell directly rather than via nsIPresShell r=Jamie
...
This patch makes accessible module use `mozilla::PresShell` directly rather
than via `nsIPresShell`. Additionally, renames `DocAccessible::PresShell()`
to `DocAccessible::PresShellPtr()` for avoiding conflict with using
`PresShell` in it and its sub classes.
Differential Revision: https://phabricator.services.mozilla.com/D26663
--HG--
extra : moz-landing-system : lando
2019-04-13 12:13:15 +00:00
James Teh
ef2bda893e
Bug 1473234: make a11y listen to DOM events from iframes and shadow DOM. r=eeejay
...
1. Register with the root document window's parent target, since this receives events for iframes and shadow DOM. (The root document itself doesn't.)
2. Hold onto the target node when scheduling processing of the DOM event, as GetOriginalTarget returns null when we process shadow DOM events async.
Depends on D21349
Differential Revision: https://phabricator.services.mozilla.com/D21350
--HG--
extra : moz-landing-system : lando
2019-03-25 05:04:36 +00:00
Narcis Beleuzu
8f2eeb4b40
Backed out 2 changesets (bug 1530931, bug 1473234) for crashtest failures on RootAccessible::RemoveEventListeners . CLOSED TREE
...
Backed out changeset 54057e1121b5 (bug 1473234)
Backed out changeset faa43bdd3347 (bug 1530931)
2019-03-21 05:53:57 +02:00
James Teh
44f8fe46e4
Bug 1473234: make a11y listen to DOM events from iframes and shadow DOM. r=eeejay
...
1. Register with the root document window's parent target, since this receives events for iframes and shadow DOM. (The root document itself doesn't.)
2. Hold onto the target node when scheduling processing of the DOM event, as GetOriginalTarget returns null when we process shadow DOM events async.
Differential Revision: https://phabricator.services.mozilla.com/D21350
--HG--
extra : moz-landing-system : lando
2019-03-01 02:48:47 +00:00
Eitan Isaacson
130d8fe6b2
Bug 1512567 - Check that we didn't already create an IPCDoc for the DocAccessible. r=Jamie
...
Differential Revision: https://phabricator.services.mozilla.com/D20594
--HG--
extra : moz-landing-system : lando
2019-02-26 17:05:47 +00:00
Emilio Cobos Álvarez
d2ed260822
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jonathan Watt
181d407b43
Bug 1510167. Mark some nsGkAtom* arguments as const in DOM code. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D13049
--HG--
extra : rebase_source : 66db700ce58e88ab95c24e9dbc70ba4815e94df1
2018-11-13 12:48:21 +00:00
Alexander Surkov
08eb9dff6a
Bug 1487311 - accessibility doesn't assosiate ids in shadow DOM, r=jamie, sr=smaug
2018-10-30 08:17:04 +08:00
Emilio Cobos Álvarez
5ebe7949ae
Bug 1487312 - Fix content insertion accessibility notifications in Shadow DOM. r=Jamie,surkov
...
The issue was specific to content insertion directly under a shadow root, the
rest should work (see bug 1427825 for the fix for other similar occurrences).
The removal of the aContainer argument follows the same pattern as bug 1442207.
Differential Revision: https://phabricator.services.mozilla.com/D6431
2018-10-20 01:19:08 +02: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
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
Alexander Surkov
32562a67f0
Bug 1349223 - cut aria-hidden tree, r=yzen
2018-07-04 10:20:49 -04:00
Cosmin Sabou
aeb2ada3aa
Backed out changeset b2df5de436bd (bug 1349223) for permafailling marionette harness on test_accessibility.py. CLOSED TREE
2018-06-25 22:50:58 +03:00
Alexander Surkov
3da9b86da8
Bug 1349223 - cut aria-hidden tree, r=yzen
2018-06-25 14:17:01 -04:00
Tokio Kajitsuka
55c94aedca
Bug 1438193 - part11-9: NativeState r=surkov
...
turn NativeState into const functions
2018-05-16 03:04:50 +09:00
Tokio Kajitsuka
4815618b61
Bug 1438193 - part11-7: TakeFocus r=surkov
...
turn TakeFocus & AnchorURIAt into const functions
2018-05-16 02:19:54 +09:00
Tokio Kajitsuka
0f609dc771
Bug 1438193 - part11-4: Name r=surkov
...
turn Name & ARIAName & NativeName into const functions
2018-05-16 01:13:02 +09:00
Tokio Kajitsuka
9b9c3780fe
Bug 1438193 - part7: NativeRole r=surkov
...
turn NativeRole into const functions
2018-05-08 04:05:50 +09:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11: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
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
Eitan Isaacson
b5e156f5c2
Bug 1368103 - Use DOM doc visibilityState to determine if a tab is hidden. r=surkov
2017-06-03 20:15:01 -07:00
Alexander Surkov
28500c691a
Bug 1362063 - replace delayed ValidateARIAOwned on straightforward DOM tree traversal, r=davidb
2017-05-04 13:21:17 -04:00
Alexander Surkov
54cc70d50a
Bug 1353094 - simplify the logic of accessible subtrees removal, r=davidb
2017-04-25 14:02:41 -04:00
Alexander Surkov
c5f506fd9b
Bug 1331269 - Assertion failure: aChild->Parent() == mParent, r=eitan
2017-01-20 11:59:52 -05:00
Alexander Surkov
0f37181efe
Bug 1287721 - Keep strong pointers for nodes in the invalidation list of a document accessible. r=smaug
...
--HG--
extra : rebase_source : e93e5b29ebe4fa4674c8af02f7b4ddd59224abf2
2016-08-24 22:16:45 -04:00
Aaron Klotz
1ee837c40c
Bug 1268544: Refactor PDocAccessible and its dependencies, and add code to integrate remote COM objects; r=tbsaunde
...
MozReview-Commit-ID: Fr4q3dq1ZQU
--HG--
rename : accessible/ipc/DocAccessibleChild.cpp => accessible/ipc/other/DocAccessibleChild.cpp
rename : accessible/ipc/DocAccessibleChild.h => accessible/ipc/other/DocAccessibleChild.h
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/other/PDocAccessible.ipdl
rename : accessible/ipc/moz.build => accessible/ipc/other/moz.build
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/win/PDocAccessible.ipdl
2016-08-15 17:14:53 -06:00
Sebastian Hengst
87b8b23d92
Backed out changeset a2b189275d7a (bug 1268544) for asserting in Windows M(oth) jobs. r=backout on a CLOSED TREE
...
--HG--
rename : accessible/ipc/other/DocAccessibleChild.cpp => accessible/ipc/DocAccessibleChild.cpp
rename : accessible/ipc/other/DocAccessibleChild.h => accessible/ipc/DocAccessibleChild.h
rename : accessible/ipc/win/PDocAccessible.ipdl => accessible/ipc/PDocAccessible.ipdl
2016-08-19 10:04:23 +02:00
Aaron Klotz
1d9ba42f65
Bug 1268544: Refactor PDocAccessible and its dependencies, and add code to integrate remote COM objects; r=tbsaunde
...
MozReview-Commit-ID: Fr4q3dq1ZQU
--HG--
rename : accessible/ipc/DocAccessibleChild.cpp => accessible/ipc/other/DocAccessibleChild.cpp
rename : accessible/ipc/DocAccessibleChild.h => accessible/ipc/other/DocAccessibleChild.h
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/other/PDocAccessible.ipdl
rename : accessible/ipc/moz.build => accessible/ipc/other/moz.build
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/win/PDocAccessible.ipdl
2016-08-15 17:14:53 -06:00
Phil Ringnalda
0d69896d44
Backed out 6 changesets (bug 1288841, bug 1268544) for causing Win7 e10s Marionette to fail in test_import_script.py TestImportScriptContent.test_imports_apply_globally
...
Backed out changeset c9f49a119255 (bug 1288841)
Backed out changeset a9d43e83e070 (bug 1268544)
Backed out changeset d898178a0809 (bug 1268544)
Backed out changeset 4887b4164dd9 (bug 1268544)
Backed out changeset 7c3a5a770cae (bug 1268544)
Backed out changeset 12aa15cf5879 (bug 1268544)
--HG--
rename : accessible/ipc/other/DocAccessibleChild.cpp => accessible/ipc/DocAccessibleChild.cpp
rename : accessible/ipc/other/DocAccessibleChild.h => accessible/ipc/DocAccessibleChild.h
rename : accessible/ipc/win/PDocAccessible.ipdl => accessible/ipc/PDocAccessible.ipdl
rename : accessible/ipc/win/ProxyAccessible.cpp => accessible/ipc/ProxyAccessible.cpp
rename : accessible/ipc/win/ProxyAccessible.h => accessible/ipc/ProxyAccessible.h
2016-08-18 00:30:21 -07:00
Aaron Klotz
c3a25c1ddc
Bug 1268544: Refactor PDocAccessible and its dependencies, and add code to integrate remote COM objects; r=tbsaunde
...
MozReview-Commit-ID: Fr4q3dq1ZQU
--HG--
rename : accessible/ipc/DocAccessibleChild.cpp => accessible/ipc/other/DocAccessibleChild.cpp
rename : accessible/ipc/DocAccessibleChild.h => accessible/ipc/other/DocAccessibleChild.h
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/other/PDocAccessible.ipdl
rename : accessible/ipc/moz.build => accessible/ipc/other/moz.build
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/win/PDocAccessible.ipdl
2016-08-15 17:14:53 -06:00
Wes Kocher
021a12c86f
Backed out changesets e4a39e456f89 (bug 1268544) for mass build bustage a=backout CLOSED TREE
...
***
Backed out changeset 119a4b187938 (bug 1268544)
***
Backed out changeset d83cba382cfe (bug 1268544)
***
Backed out changeset a0085eb5ffe7 (bug 1268544)
***
Backed out changeset eefa457c3680 (bug 1288843)
***
Backed out changeset 17dc46beb1a5 (bug 1288841)
***
Backed out changeset e76f58f328d4 (bug 1268544)
***
Backed out changeset ffc8ee715fdb (bug 1268544)
***
Backed out changeset 99f0ea19b8f5 (bug 1268544)
***
Backed out changeset 2bdfb9514317 (bug 1268544)
***
Backed out changeset e4b3a5e1756d (bug 1268544)
--HG--
rename : accessible/ipc/other/DocAccessibleChild.cpp => accessible/ipc/DocAccessibleChild.cpp
rename : accessible/ipc/other/DocAccessibleChild.h => accessible/ipc/DocAccessibleChild.h
rename : accessible/ipc/win/PDocAccessible.ipdl => accessible/ipc/PDocAccessible.ipdl
rename : accessible/ipc/win/ProxyAccessible.cpp => accessible/ipc/ProxyAccessible.cpp
rename : accessible/ipc/win/ProxyAccessible.h => accessible/ipc/ProxyAccessible.h
extra : amend_source : dc73ec117c7279539cab36af821637bb1b0236bd
extra : histedit_source : 438ce81f07a53af61b1cabf7620f30b090e7d5e2%2Ccb6472913fe0d7d2ec66bf0cedc18f2e4d00678e
2016-08-15 15:58:45 -07:00
Aaron Klotz
55b28e20c7
Bug 1268544: Refactor PDocAccessible and its dependencies, and add code to integrate remote COM objects; r=tbsaunde
...
MozReview-Commit-ID: Fr4q3dq1ZQU
--HG--
rename : accessible/ipc/DocAccessibleChild.cpp => accessible/ipc/other/DocAccessibleChild.cpp
rename : accessible/ipc/DocAccessibleChild.h => accessible/ipc/other/DocAccessibleChild.h
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/other/PDocAccessible.ipdl
rename : accessible/ipc/moz.build => accessible/ipc/other/moz.build
rename : accessible/ipc/PDocAccessible.ipdl => accessible/ipc/win/PDocAccessible.ipdl
2016-08-15 14:24:04 -06:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
Alexander Surkov
446c271cb6
Bug 1262420 - split updateTreeInternal for removals and insertions, part 2, r=yzen
2016-04-25 09:10:41 -04:00
Alexander Surkov
51947ead2c
Bug 1261425 - coalesce mutation events by a tree structure, r=yzen
2016-04-07 09:30:22 -04:00
Alexander Surkov
41a839ff6b
Bug 1261408 - detect ARIA owned children early to avoid tree moving, r=yzen
2016-04-06 07:58:58 -04:00
Alexander Surkov
62081fdb80
Bug 1261170 - add a single node ProcessContentInserted method version, r=yzen
2016-04-05 20:48:30 -04:00
Alexander Surkov
c2cdfb8b81
Bug 1261167 - remove Accessible::TestChildCache, r=marcoz
2016-04-05 17:35:31 -04:00
Alexander Surkov
e66c565efd
Bug 1256461 - merge MoveChild and SeizeChild methods, r=yzen
2016-03-31 21:22:13 -04:00
Alexander Surkov
35d213f532
Bug 1260187 - remove recaching version of DocAccessible::UpdateTreeOnInsertion, r=yzen
2016-03-31 20:46:45 -04:00
Alexander Surkov
f04d43e6a0
Bug 1255614 - make ProcessInvalidationList to insert accessibles instead the recaching, r=yzen
2016-03-29 09:20:43 -04:00
Alexander Surkov
d3f1ea74cd
Bug 1255009 - insert children into the tree on content insertion instead the recaching, r=yzen
2016-03-28 13:40:21 -04:00
Nicholas Nethercote
7cb4896c8f
Bug 1255655 - Const-ify sWAIRoleMaps. r=tbsaunde.
...
--HG--
extra : rebase_source : 1274cdb26bbc41456e91b67849733bfb5bc89401
2016-03-11 13:13:01 +11:00
Ryan VanderMeulen
706d97900d
Backed out changeset 14092b3cacbe (bug 1255614) because it blocks bug 1255009 from being backed out.
...
--HG--
extra : rebase_source : 0b1027cd8a156536f561c56662696ef1c35e3e8a
extra : histedit_source : 4d18d24cbd36cde0c7b5187b7e797a13d4dbf60a
2016-03-15 12:39:43 -04:00