Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

webRequest.RequestFilter

An object describing filters to apply to webRequest events.

Type

Values of this type are objects. They contain the following properties:

urls
array of string. An array of match patterns. The listener will only be called for requests whose targets match any of the given patterns. Only requests made using HTTP or HTTPS will trigger events, even though match patterns can match some other protocols.
typesOptional
array of webRequest.ResourceType. A list of resource types (for example, stylesheets, images, scripts). The listener will only be called for requests for resources which are one of the given types.
tabIdOptional
integer. The listener will only be called for requests from the tab identified by this ID.
windowIdOptional
integer. The listener will only be called for requests from the window identified by this ID.

Browser compatibility

Chrome Edge Firefox Firefox for Android Opera
Basic Support Yes Yes 45.0 48.0 33

Compatibility notes

Firefox

  • 'windowId' and 'tabId' are not supported.

Firefox for Android

  • 'windowId' and 'tabId' are not supported.

Acknowledgements

This API is based on Chromium's chrome.webRequest API. This documentation is derived from web_request.json in the Chromium code.

Microsoft Edge compatibility data is supplied by Microsoft Corporation and is included here under the Creative Commons Attribution 3.0 United States License.

Document Tags and Contributors

 Contributors to this page: wbamberg, rolfedh
 Last updated by: wbamberg,