Bug 1851970 - Part 2: Activation behavior method for links. r=edgar

Differential Revision: https://phabricator.services.mozilla.com/D183991
This commit is contained in:
Vincent Hilla
2023-11-28 14:09:02 +00:00
parent 284a4b3cbc
commit 4a2ca2ff09
15 changed files with 113 additions and 121 deletions

View File

@@ -625,6 +625,15 @@ nsresult nsGenericHTMLElement::PostHandleEventForAnchors(
return PostHandleEventForLinks(aVisitor);
}
void nsGenericHTMLElement::ActivationBehaviorForAnchors(
EventChainPostVisitor& aVisitor) {
if (!CheckHandleEventForAnchorsPreconditions(aVisitor)) {
return;
}
return ActivationBehaviorForLinks(aVisitor);
}
bool nsGenericHTMLElement::IsHTMLLink(nsIURI** aURI) const {
MOZ_ASSERT(aURI, "Must provide aURI out param");