mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #2135 - Bug 1323815: FocusEvent.relatedTarget should work consistently with MouseEvent.relatedTarget
* This incorporates changes from Bug 1413102.
This commit is contained in:
parent
1bb2009f61
commit
1185cfe3f0
7 changed files with 79 additions and 25 deletions
|
|
@ -30,14 +30,14 @@ NS_IMETHODIMP
|
|||
FocusEvent::GetRelatedTarget(nsIDOMEventTarget** aRelatedTarget)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aRelatedTarget);
|
||||
NS_IF_ADDREF(*aRelatedTarget = GetRelatedTarget());
|
||||
*aRelatedTarget = GetRelatedTarget().take();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
EventTarget*
|
||||
already_AddRefed<EventTarget>
|
||||
FocusEvent::GetRelatedTarget()
|
||||
{
|
||||
return mEvent->AsFocusEvent()->mRelatedTarget;
|
||||
return EnsureWebAccessibleRelatedTarget(mEvent->AsFocusEvent()->mRelatedTarget);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue