Open Bug 1853019 Opened 1 year ago Updated 1 year ago

Reduce duplicated code in `ScrollToAnchor` and `ScrollToRef`

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

People

(Reporter: mathew.hodson, Unassigned)

References

Details

In D187362#6224930, @emilio wrote:

I wonder if this could just reuse document->ScrollToRef(). Maybe add a SetScrollToRef that takes an nsACString, then call SetScrollToRef(aNewHash); ScrollToRef()...

You need to log in before you can comment on or make changes to this bug.