Merge pull request #2509 from drien/main

Add `file:` protocol to non-permissible protocol list
This commit is contained in:
Danny Colin 2023-02-23 18:03:55 -05:00 committed by GitHub
commit 473495ec0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,8 @@ const backgroundLogic = {
// We can't open these we just have to throw them away
if (protocol === "about:"
|| protocol === "chrome:"
|| protocol === "moz-extension:") {
|| protocol === "moz-extension:"
|| protocol === "file:") {
return false;
}
return true;