When using webrequest api with event page, get the error :
The 'webRequest' API cannot be used with event pages.
Looking on the net, I found this topic : http://code.google.com/p/chromium/issues/detail?id=119613
My questions : why can't (or how can) we use both ?
For those who don't want to use the new Event Pages and would prefer to stick with Background Pages, make sure to set "persistent": true
in your manifest file's background
property.
"background": { "scripts": ["bootstrap.js"], "persistent": true },
Found declarativeWebRequest API, that would be the solution.
Avalaible now in dev and beta channels.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With