Using webrequest api with event page
Found declarativeWebRequest API, that would be the solution.
Avalaible now in dev and beta channels.
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
},