зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1893376 - have XPCOM GetAccessibleFor return GetAccessibleEvenIfNotInMap when getting an Accessible for a DOM node; r=Jamie
This allows tests to get an Accessible for an HTML area element, since area elements are special and are not in the DocAccessible node map. Differential Revision: https://phabricator.services.mozilla.com/D209614
This commit is contained in:
Родитель
1aa761fd44
Коммит
1c400ec41c
|
@ -123,7 +123,8 @@ xpcAccessibilityService::GetAccessibleFor(nsINode* aNode,
|
|||
|
||||
DocAccessible* document = accService->GetDocAccessible(aNode->OwnerDoc());
|
||||
if (document) {
|
||||
NS_IF_ADDREF(*aAccessible = ToXPC(document->GetAccessible(aNode)));
|
||||
NS_IF_ADDREF(*aAccessible =
|
||||
ToXPC(document->GetAccessibleEvenIfNotInMap(aNode)));
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[area-role.html]
|
||||
[el-area]
|
||||
expected: FAIL
|
Загрузка…
Ссылка в новой задаче