Bug 1329822 - file:// documents can't use <a download=foo.txt> to set a download name/force a download; r=baku,Gijs

MozReview-Commit-ID: 9cRepRafhWO

--HG--
extra : rebase_source : 2b8d7a8607a14b5af6672bf833126cc94f0b1853
This commit is contained in:
Haik Aftandilian 2017-01-13 11:55:38 -08:00
Родитель 87a0a37e72
Коммит 6d8c422776
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -71,9 +71,11 @@ this.E10SUtils = {
return aPreferredRemoteType;
}
// We need data: URIs to load in any remote process, because some of our
// tests rely on this.
if (aURL.startsWith("data:")) {
// We need data: URI's to load in a remote process, because some of our
// tests rely on this. For blob: URI's, load them in their originating
// process unless it is non-remote. In that case, favor a remote (sandboxed)
// process with fewer privileges to limit exposure.
if (aURL.startsWith("data:") || aURL.startsWith("blob:")) {
return aPreferredRemoteType == NOT_REMOTE ? DEFAULT_REMOTE_TYPE
: aPreferredRemoteType;
}