Bug 1762393 - Fix --disable-accessibility bustage in PresShell.cpp. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D142552
This commit is contained in:
Ryan VanderMeulen
2022-03-31 17:14:53 +00:00
parent 3cd58ad03b
commit 5ed753c1d2

View File

@@ -3319,9 +3319,11 @@ nsresult PresShell::GoToAnchor(const nsAString& aAnchorName, bool aScroll,
animationElement->ActivateByHyperlink();
}
#ifdef ACCESSIBILITY
if (nsAccessibilityService* accService = GetAccessibilityService()) {
accService->NotifyOfAnchorJumpTo(target);
}
#endif
} else if (nsContentUtils::EqualsIgnoreASCIICase(aAnchorName, u"top"_ns)) {
// 2.2. Scroll to the beginning of the document for the Document.
nsIScrollableFrame* sf = GetRootScrollFrameAsScrollable();