Skip to content

Commit 0131600

Browse files
committed
Fixed RequestGuard on Firefox still using CSP.blocks() as an instance method.
1 parent 56ed0c7 commit 0131600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bg/RequestGuard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@
781781
return;
782782
}
783783
let scriptBlocked = request.responseHeaders.some(
784-
h => csp.isMine(h) && csp.blocks(h.value, "script")
784+
h => csp.isMine(h) && CSP.blocks(h.value, "script")
785785
);
786786
debug("%s scriptBlocked=%s setting noscriptFrame on ", url, scriptBlocked, tabId, frameId); // DEV_ONLY
787787
TabStatus.record(request, "noscriptFrame", scriptBlocked);

0 commit comments

Comments
 (0)