зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
87a0a37e72
Коммит
6d8c422776
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче