I am resubmitting my question from the google chromium-extensions group.
In my extension, I want to undo some webRequests based on the url template. My problem is that if I return to {cancel: true} in the onBeforeRequest event listener, the browser redirects to a page telling me that the request is blocked by some extension, But I just want to cancel the request silently (since nothing happened).
I also tried returning {redirectUrl: "} to the onBeforeRequest event listener, the console would log an error indicating that" "is not a valid URL, and a panel appeared at the bottom of the browser that said: Waiting for extension . To reject this bar , I then run the contents of the script " window.stop () " on this web page. This works sometimes, but not always. Therefore, I am wondering if anyone has a better solution. Thanks !!
javascript google-chrome google-chrome-extension
Jun
source share