mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #2402 - Ignore empty CSP directives. https://bugzilla.mozilla.org/show_bug.cgi?id=1439425
This commit is contained in:
parent
90eb83819c
commit
bfabbcd311
3 changed files with 12 additions and 0 deletions
|
|
@ -1115,6 +1115,10 @@ nsCSPParser::directive()
|
|||
return;
|
||||
}
|
||||
|
||||
if (CSP_IsEmptyDirective(mCurValue, mCurToken)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Try to create a new CSPDirective
|
||||
nsCSPDirective* cspDir = directiveName();
|
||||
if (!cspDir) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue