Bug 1865610: part 1) Add partial support for the "fetchpriority" attribute for loading style sheets from <link> elements or Link header fields. r=smaug,emilio,valentin

Includes only support for dynamically loading style sheets from `<link>`
elements and `Link` header fields.
The remaining support, including preloading, is completed in part 3.

Differential Revision: https://phabricator.services.mozilla.com/D191745
This commit is contained in:
Mirko Brodesser
2023-11-23 14:36:11 +00:00
parent 831884f9bb
commit 2a72b3ab97
24 changed files with 348 additions and 68 deletions

View File

@@ -389,6 +389,7 @@ Maybe<LinkStyle::SheetInfo> HTMLLinkElement::GetStyleSheetInfo() {
alternate ? HasAlternateRel::Yes : HasAlternateRel::No,
IsInline::No,
mExplicitlyEnabled ? IsExplicitlyEnabled::Yes : IsExplicitlyEnabled::No,
GetFetchPriority(),
});
}