It should be possible for Web Extensions to open URIs and get a handle which can be used to set/override the HTTP headers of the response as early in the process as possible (before any rendering or caching decision). One use case for this is the "Open in Browser" extension which sets the "Content-Disposition", "Cache-Control" and the content type headers so that the document is opened in the browser instead of being downloaded. Blocks bug 1344646
Oh, it seems to be already doable with the onHeadersReceived callback. nvm then! https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onHeadersReceived
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.