Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

This thread was closed and archived. Please ask a new question if you need help.

browser.webRequest.filterResponseData missing in FF Webextensions

  • 1 reply
  • 1 has this problem
  • 1 view
  • Last reply by Paul

more options

Locking this thread.
Please continue here: [/questions/1176377]
in the implementation of WebRequests API in chrome, you can modify a page's source before the dom tree is even being built using this function: let filter = browser.webRequest.filterResponseData(details.requestId); and then using filter.ondata = event => { this function (browser.webRequest.filterResponseData) is completely missing in FF.

<i>Locking this thread.</i><br><i>Please continue here: [[/questions/1176377]]</i><br> in the implementation of WebRequests API in chrome, you can modify a page's source before the dom tree is even being built using this function: let filter = browser.webRequest.filterResponseData(details.requestId); and then using filter.ondata = event => { this function (browser.webRequest.filterResponseData) is completely missing in FF.

Modified by cor-el

Chosen solution

Hi

if you have a question about add-on development, I recommend you ask in the main add-on forums at https://discourse.mozilla.org/c/add-ons.

Read this answer in context 👍 0

All Replies (1)

more options

Chosen Solution

Hi

if you have a question about add-on development, I recommend you ask in the main add-on forums at https://discourse.mozilla.org/c/add-ons.