mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1252857 - Value change events for HTML:select have wrong target. r=marcoz, a=ritu
This commit is contained in:
parent
fb146a9a7c
commit
c4760e4a35
@ -1247,12 +1247,6 @@ DocAccessible::GetAccessibleOrContainer(nsINode* aNode) const
|
||||
if (!(currNode = parent)) break;
|
||||
}
|
||||
|
||||
// HTML comboboxes have no-content list accessible as an intermediate
|
||||
// containing all options.
|
||||
if (accessible && accessible->IsHTMLCombobox()) {
|
||||
return accessible->FirstChild();
|
||||
}
|
||||
|
||||
return accessible;
|
||||
}
|
||||
|
||||
@ -1701,6 +1695,12 @@ DocAccessible::ProcessContentInserted(Accessible* aContainer,
|
||||
// there is no HTML body element.
|
||||
}
|
||||
|
||||
// HTML comboboxes have no-content list accessible as an intermediate
|
||||
// containing all options.
|
||||
if (container && container->IsHTMLCombobox()) {
|
||||
container = container->FirstChild();
|
||||
}
|
||||
|
||||
// We have a DOM/layout change under the container accessible, and its tree
|
||||
// might need an update. Since DOM/layout change of the element may affect
|
||||
// on the accessibleness of adjacent elements (for example, insertion of
|
||||
|
@ -132,7 +132,8 @@
|
||||
|
||||
function changeSelectValue(aID, aKey, aValue)
|
||||
{
|
||||
this.eventSeq = [new invokerChecker(EVENT_TEXT_VALUE_CHANGE, aID)];
|
||||
this.eventSeq =
|
||||
[ new invokerChecker(EVENT_TEXT_VALUE_CHANGE, getAccessible(aID)) ];
|
||||
|
||||
this.invoke = function changeSelectValue_invoke()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user