Closed Bug 1418636 Opened 7 years ago Closed 7 years ago

[WebExtensions] Remove browser.downloads.download headers restrictions

Categories

(WebExtensions :: General, enhancement)

57 Branch
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1367626

People

(Reporter: michel.gutierrez, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171003101344

Steps to reproduce:

The browser.downloads.download() API allows to specify the HTTP headers that are sent along with the request. However, this follows the XMLHttpRequest.setRequestHeader() restrictions. For instance, it is not possible to set the Referer header.

Although having those restrictions on Web page-callable XMLHttpRequest service is perfectly appropriate for security reasons, having this limitation on add-ons is too restrictive.

This causes for instance the Video DownloadHelper add-on to fail downloading from many sites because the server expects a specific referrer that can not be provided by the add-on when requesting the download.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.