Bug 1908907 - Text Fragments: Set sequential focus to the text directive, but don't focus it. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D217100
This commit is contained in:
@@ -3218,7 +3218,7 @@ nsresult PresShell::GoToAnchor(const nsAString& aAnchorName,
|
||||
// TODO(emilio): Do we really want to clear the focus even if aScroll is
|
||||
// false?
|
||||
const bool shouldFocusTarget = [&] {
|
||||
if (!aScroll) {
|
||||
if (!aScroll || thereIsATextFragment) {
|
||||
return false;
|
||||
}
|
||||
nsIFrame* targetFrame = target->GetPrimaryFrame();
|
||||
|
||||
Reference in New Issue
Block a user