mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +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
|
|
@ -75,8 +75,13 @@ function parseFilter(filter) {
|
|||
filter = {};
|
||||
}
|
||||
|
||||
// FIXME: Support windowId filtering.
|
||||
return {urls: filter.urls || null, types: filter.types || null};
|
||||
return {
|
||||
urls: filter.urls || null,
|
||||
types: filter.types || null,
|
||||
tabId: filter.tabId === undefined ? null : filter.tabId,
|
||||
windowId: filter.windowId === undefined ? null : filter.windowId,
|
||||
incognito: filter.incognito === undefined ? null : filter.incognito,
|
||||
};
|
||||
}
|
||||
|
||||
function parseExtra(extra, allowed = []) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue