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
a9f8e3ce62f414c31a6789c40166cb31b289b7ad
parent
ecc20457d9c436279a2de81cb61b262296ce977d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-11-27 11:19
fix: do not clear requests on navigation inside frame

Diffstat

M src/bg.js 4 +++-

1 files changed, 3 insertions, 1 deletions


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

@@ -135,7 +135,9 @@ browser.runtime.onMessage.addListener((msg, sender) => {
  135   135 
  136   136 browser.tabs.onRemoved.addListener(clearRequests);
  137   137 browser.webNavigation.onBeforeNavigate.addListener(details => {
  138    -1     return clearRequests(details.tabId);
   -1   138     if (details.frameId === 0) {
   -1   139         return clearRequests(details.tabId);
   -1   140     }
  139   141 });
  140   142 
  141   143 browser.webRequest.onBeforeRequest.addListener(details => {