Bug 1447890 part 5. Remove nsISelection::RemoveAllRanges. r=mystor
MozReview-Commit-ID: EeMje9KW6An
This commit is contained in:
@@ -3187,7 +3187,7 @@ PresShell::GoToAnchor(const nsAString& aAnchorName, bool aScroll,
|
||||
// Select the anchor
|
||||
RefPtr<Selection> sel = mSelection->GetSelection(SelectionType::eNormal);
|
||||
if (sel) {
|
||||
sel->RemoveAllRanges();
|
||||
sel->RemoveAllRanges(IgnoreErrors());
|
||||
sel->AddRange(*jumpToRange, IgnoreErrors());
|
||||
if (!selectAnchor) {
|
||||
// Use a caret (collapsed selection) at the start of the anchor
|
||||
|
||||
Reference in New Issue
Block a user