mirror of https://github.com/gorhill/uBlock.git
code review for #3140: handle case where both blockedURI & sourceFile are not found
This commit is contained in:
parent
392fef1828
commit
7e21eec7ce
|
@ -440,6 +440,8 @@ var onBeforeMaybeSpuriousCSPReport = function(details) {
|
|||
sourceFile = report['source-file'] ||
|
||||
report['sourceFile'];
|
||||
if (
|
||||
(typeof blockedURI === 'string' ||
|
||||
typeof sourceFile === 'string') &&
|
||||
(typeof blockedURI !== 'string' ||
|
||||
blockedURI.startsWith('data') === false) &&
|
||||
(typeof sourceFile !== 'string' ||
|
||||
|
|
Loading…
Reference in New Issue