(from mypal68) Add incognito and windowId support to webRequest filtering

This commit is contained in:
ownedbywuigi 2026-03-31 21:25:53 +01:00
commit d90e52fac4
3 changed files with 33 additions and 46 deletions

View file

@ -77,6 +77,8 @@ extensions.on("page-shutdown", (type, context) => {
extensions.on("fill-browser-data", (type, browser, data) => {
data.tabId = browser ? TabManager.getBrowserId(browser) : -1;
data.windowId = browser && browser.ownerGlobal ? WindowManager.getId(browser.ownerGlobal) : -1;
data.incognito = !!(browser && PrivateBrowsingUtils.isBrowserPrivate(browser));
});
/* eslint-enable mozilla/balanced-listeners */