gecko-dev/docshell
Jan-Niklas Jaeschke 04cc402b1d Bug 1888756, part 5 - Text Fragments: Implemented user activation. r=edgar,dom-core
This commit implements the rules given in the spec [0]
to determine if a text directive is allowed to be scrolled to.

This includes checking and consuming the text directive user activation
which was introduced in the previous parts of this patch set.

Additionally, a number of checks given in [1] are implemented.
The newly added method is injected into our scroll-to-fragment
algorithms in `Document::ScrollToRef()` and `nsDocShell::ScrollToAnchor()`.

[0] https://wicg.github.io/scroll-to-text-fragment/#restricting-the-text-fragment
[1] https://wicg.github.io/scroll-to-text-fragment/#check-if-a-text-directive-can-be-scrolled

Differential Revision: https://phabricator.services.mozilla.com/D212820
2024-06-20 10:24:27 +00:00
..
base Bug 1888756, part 5 - Text Fragments: Implemented user activation. r=edgar,dom-core 2024-06-20 10:24:27 +00:00
build Bug 1894958: Let's name this page more accurately r=timhuang 2024-06-05 02:04:40 +00:00
shistory Bug 1888756, part 2 - Text Fragments: Implement setting the textDirectiveUserActivation flag in the document loading algorithm. r=edgar,dom-core 2024-06-20 10:24:26 +00:00
test Bug 1891670 - Expose crossGroupOpener on CanonicalBrowsingContext. r=dom-core,tabbrowser-reviewers,peterv 2024-06-17 14:16:23 +00:00
moz.build Bug 1859890 - batch 14 convert xpcshell.ini -> .toml. r=aryx,dom-storage-reviewers,jesup 2023-11-28 01:02:01 +00:00