Open Bug 1572200 Opened 5 years ago Updated 2 years ago

Allow webRequest.onBeforeRequest to redirect to URL provided by programmable protocol API

Categories

(WebExtensions :: Request Handling, enhancement, P3)

enhancement

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

Is the base protocol you want to redirect to handled through nsHttpChannel? If not, this will probably be closed wontfix.

Flags: needinfo?(rFobic)

(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

Flags: needinfo?(rFobic)

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.

No longer depends on: libdweb-protocol
See Also: libdweb-protocol
Priority: -- → P3
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.