mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2158 - Part 5: Guard preload links support with a preference
This is enabled by default.
This commit is contained in:
parent
95490b25eb
commit
6c53117699
4 changed files with 24 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ nsHtml5TreeBuilder::createElement(int32_t aNamespace,
|
|||
mSpeculativeLoadQueue.AppendElement()->InitPreconnect(
|
||||
url, crossOrigin);
|
||||
}
|
||||
} else if (rel.LowerCaseEqualsASCII("preload")) {
|
||||
} else if (rel.LowerCaseEqualsASCII("preload") && nsContentUtils::IsPreloadEnabled()) {
|
||||
nsHtml5String url =
|
||||
aAttributes->getValue(nsHtml5AttributeName::ATTR_HREF);
|
||||
if (url) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue