xiMatrix

filter net requests according to source, destination and type  https://addons.mozilla.org/firefox/addon/ximatrix/
git clone https://git.ce9e.org/xiMatrix.git

commit
a01c3c17a571be18258f846744859a1092a7b103
parent
5f513e070570bffda4cfad4d7d2c7c80dfb2d788
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-12-07 19:03
fix frameAncestors is undefined

Diffstat

M src/bg.js 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/src/bg.js b/src/bg.js

@@ -171,7 +171,7 @@ browser.webNavigation.onBeforeNavigate.addListener(details => {
  171   171 
  172   172 browser.webRequest.onBeforeSendHeaders.addListener(details => {
  173   173     var context = getHostname(details.documentUrl || details.url);
  174    -1     if (details.frameAncestors.length) {
   -1   174     if (details.frameAncestors && details.frameAncestors.length) {
  175   175         var last = details.frameAncestors.length - 1;
  176   176         context = getHostname(details.frameAncestors[last].url);
  177   177     }