mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
(from mypal68) Add incognito and windowId support to webRequest filtering
This commit is contained in:
parent
223d5d6a25
commit
d90e52fac4
3 changed files with 33 additions and 46 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue