Allow webRequest.onBeforeRequest to redirect to URL provided by programmable protocol API
Categories
(WebExtensions :: Request Handling, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: irakli, Unassigned)
References
(Blocks 1 open bug, )
Details
webRequest.onBeforeRequest
API WebExtensions are able to inspect HTTP request before it is sent and redirect it to a different URL. However it seems to be only possible to redirect to a URL limited set of protocol schemes. With an ability to register programmable protocol handler we would want to allow redirects to URLs from those protocols as well
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Is the base protocol you want to redirect to handled through nsHttpChannel? If not, this will probably be closed wontfix.
Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #1)
Is the base protocol you want to redirect to handled through nsHttpChannel? If not, this will probably be closed wontfix.
Not currently, but that is something we want to address (see Bug 1572215). However I'd love to know what's the correlation with nsHttpChannel
Comment 3•5 years ago
|
||
webRequest is mostly tied to nsIHttpChannel. It works in small ways otherwise, but it's unlikely we'd make major changes in this api. It may be that redirect would already work, or that some change in nsHttpChannel itself would make the redirect work from https? -> something:, but that would be a core networking bug.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Description
•