mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
code review for #3140: handle case where both blockedURI & sourceFile are not found
This commit is contained in:
parent
392fef1828
commit
7e21eec7ce
1 changed files with 2 additions and 0 deletions
|
@ -440,6 +440,8 @@ var onBeforeMaybeSpuriousCSPReport = function(details) {
|
||||||
sourceFile = report['source-file'] ||
|
sourceFile = report['source-file'] ||
|
||||||
report['sourceFile'];
|
report['sourceFile'];
|
||||||
if (
|
if (
|
||||||
|
(typeof blockedURI === 'string' ||
|
||||||
|
typeof sourceFile === 'string') &&
|
||||||
(typeof blockedURI !== 'string' ||
|
(typeof blockedURI !== 'string' ||
|
||||||
blockedURI.startsWith('data') === false) &&
|
blockedURI.startsWith('data') === false) &&
|
||||||
(typeof sourceFile !== 'string' ||
|
(typeof sourceFile !== 'string' ||
|
||||||
|
|
Loading…
Reference in a new issue