mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

The code path that was used for loading a document with fission disabled did not take user activation into account. This made almost all WPTs for Text Fragments fail, since they depend on this flag to decide if a text directive is allowed to be scrolled to. This patch makes sure that the user activation is also available for code paths that run through `CanonicalBrowsingContext::FixupAndLoadURIString()` to load a document. This is done by adding a flag `hasValidUserGestureActivation` to the `nsIOpenWindowInfo`, which carries it through the JS stack for loading a document. Differential Revision: https://phabricator.services.mozilla.com/D213401