Skip to content

Commit 7e9ee6f

Browse files
committed
Fixed infinite x-load blocking loops (thanks barbaz for reporting).
1 parent 1c6af76 commit 7e9ee6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/eventsHook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (location.protocol == "file:") {
6060
}
6161

6262
const block = (el, url = el.currentSrc) => {
63-
console.warn("Blocking path traversal in load", url, el);
63+
console.warn("Blocking path traversal", url, el);
6464
const request = notify(url, false);
6565
// restore full url, notify truncates to dir
6666
request.url = url;
@@ -88,7 +88,7 @@ if (location.protocol == "file:") {
8888
target.href,
8989
document.baseURI);
9090
if (!isAllowedPath(url)) {
91-
if (e.type == "loadstart" || target instanceof HTMLImageElement) {
91+
if (e.type == "loadstart") {
9292
block(target);
9393
}
9494
} else if (!blockedList.has(target)) {

0 commit comments

Comments
 (0)