I’m using onBeforeRequest to intercept page requests with “blocking” active. Frequently when I call
browser.webRequest.filterResponseData(details.requestId it failes with the error ‘Invalid request ID’.
Why? And how should I handle that error?
I was just ignoring it, but I noticed that sometimes when I’m browsing with the extension active, certain requests can block for several minutes before returning. If I unload the extension, the requests resolve immediately. I’ve put in a bunch of debugging statement but can’t figure out what’s causing the requests to block, but I’m wondering if these
Invalid request ID errors are related.