Closed
Bug 1344652
Opened 8 years ago
Closed 8 years ago
Add way for WebExtensions to open URIs and set/override response headers
Categories
(WebExtensions :: Untriaged, enhancement)
WebExtensions
Untriaged
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: MTest31, Unassigned)
References
Details
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
Closed: 8 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•