Bug 1329822 - file:// documents can't use <a download=foo.txt> to set a download name/force a download; r?gijs
MozReview-Commit-ID: 9cRepRafhWO
--- a/browser/modules/E10SUtils.jsm
+++ b/browser/modules/E10SUtils.jsm
@@ -66,19 +66,21 @@ this.E10SUtils = {
aURL = "about:blank";
}
// Javascript urls can load in any process, they apply to the current document
if (aURL.startsWith("javascript:")) {
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;
}
if (aURL.startsWith("file:")) {
return Services.prefs.getBoolPref("browser.tabs.remote.separateFileUriProcess")
? FILE_REMOTE_TYPE : DEFAULT_REMOTE_TYPE;
}