Intent to Ship: navigateEvent.scroll()

Skip to first unread message

Nate Chapin

Jul 18, 2022, 8:06:12 PM7/18/22
to blink-dev

Contact emails,



scroll() works very similarly to the existing restoreScroll() except that it can be called when the navigation is not a traversal. It also allows manually performing the scroll even when not in manual scroll mode.

Blink component


TAG review

TAG review status

Issues open


Interoperability and Compatibility

Most of the compatibility risk comes from the removal of restoreScroll(), and will be discussed in that separate Intent. For those migrating to scroll(), all existing use cases should just work by changing the function name.

Gecko: No signal remains open as the positions request for the original API.

WebKit: No signal remains open as the positions request for the original API. was recently opened by web developers and also remains open.

Web developers: Positive. came out of discussions with web developers.


This is a slightly more featureful restoreScroll().


None different than restoreScroll()

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None, this should work identically on all platforms.


Debugging should be no different than debugging restoreScroll().

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?


Is this feature fully tested by web-platform-tests?

The navigation-api/ directory makes extensive use of restoreScroll(), and we're updating it to use scroll() alongside the implementation.

Requires code in //chrome?


Tracking bug

Estimated milestones


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).


Link to entry on the Chrome Platform Status

This intent message was generated by Chrome Platform Status.

Chris Harrelson

Jul 18, 2022, 11:05:34 PM7/18/22
to Nate Chapin, blink-dev

You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Yoav Weiss

Jul 19, 2022, 9:11:52 AM7/19/22
to Chris Harrelson, Nate Chapin, blink-dev

Process note: I think it'd be easier if we had an "intent to change" that would enable you to send a single intent for this.

Mike Taylor

Jul 19, 2022, 9:35:01 AM7/19/22
to Yoav Weiss, Chris Harrelson, Nate Chapin, blink-dev
Reply all
Reply to author
0 new messages