mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
try to fix the images not rendering on yeezy.com
This commit is contained in:
parent
d9464e116c
commit
8046f8b4aa
7 changed files with 103 additions and 14 deletions
|
|
@ -982,6 +982,13 @@ nsCSPParser::directiveName()
|
|||
NS_ConvertUTF16toUTF8(mCurToken).get(),
|
||||
NS_ConvertUTF16toUTF8(mCurValue).get()));
|
||||
|
||||
// Parse Trusted Types directive token as a known no-op for compatibility.
|
||||
// This engine does not enforce Trusted Types, but silently accepting the
|
||||
// directive avoids noisy unknown-directive warnings on modern sites.
|
||||
if (mCurToken.LowerCaseEqualsLiteral("require-trusted-types-for")) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Check if it is a valid directive
|
||||
if (!CSP_IsValidDirective(mCurToken) ||
|
||||
(!sCSPExperimentalEnabled &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue