An object describing filters to apply to webRequest events.

interface RequestFilter {
    incognito?: boolean;
    tabId?: number;
    types?: browser.webRequest.ResourceType[];
    urls: string[];
    windowId?: number;
}
Index
incognito?: boolean

If provided, requests that do not match the incognito state will be filtered out.

tabId?: number

A list of request types. Requests that cannot match any of the types will be filtered out.

urls: string[]

A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out.

windowId?: number