forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a document policy that lets pages opt out of scrolling that automatically happens on page load. This provides an opt-out to the Scroll To Text feature (see bug and [1]), but also applies to fragment scrolls and scroll restoration. With the DocumentPolicy feature[2] enabled, pages can opt out of these types of scrolling by adding the HTTP header: Document-Policy: force-load-at-top [1] WICG/scroll-to-text-fragment#80 [2] https://github.com/w3c/webappsec-feature-policy/blob/master/document-policy-explainer.md Bug: 1047900 Change-Id: Iebba7fd24fa2e362bfa4a8f77903763b5d95b787 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2073138 Commit-Queue: Nick Burris <[email protected]> Reviewed-by: Ian Clelland <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Reviewed-by: David Bokan <[email protected]> Cr-Commit-Position: refs/heads/master@{#748465}
- Loading branch information
Nick Burris
authored and
Commit Bot
committed
Mar 10, 2020
1 parent
cbd4502
commit 3c290e0
Showing
7 changed files
with
351 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters