Fixed 11.0.44 regression: ghost media item reported on every page.
This commit is contained in:
parent
dabc5023f0
commit
776b7f7f45
|
@ -118,6 +118,7 @@ window.addEventListener("securitypolicyviolation", e => {
|
|||
|
||||
let type = violatedDirective.split("-", 1)[0]; // e.g. script-src 'none' => script
|
||||
let url = e.blockedURI;
|
||||
if (/^data\b/.test(url) && !document.querySelector("video,audio")) return;
|
||||
if (!(url && url.includes(":"))) {
|
||||
url = document.URL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue