Bug 1109146 - skip prompt for downloading a file when you alt+click a link; r?felipe
Changed saveURL to follow the same behavior as in the non-e10s code path which is in
function handleLinkClick(event, href, linkNode)
in browser.js which skips the download prompt when
where == "save"
set when you alt+click a link
MozReview-Commit-ID: 9MfMDR5XAEE
--- a/browser/base/content/utilityOverlay.js
+++ b/browser/base/content/utilityOverlay.js
@@ -225,17 +225,17 @@ function openLinkIn(url, where, params)
if (where == "save") {
if (!aInitiatingDoc) {
Components.utils.reportError("openUILink/openLinkIn was called with " +
"where == 'save' but without initiatingDoc. See bug 814264.");
return;
}
// TODO(1073187): propagate referrerPolicy.
- saveURL(url, null, null, true, null, aNoReferrer ? null : aReferrerURI, aInitiatingDoc);
+ saveURL(url, null, null, true, true, aNoReferrer ? null : aReferrerURI, aInitiatingDoc);
return;
}
var w = getTopWin();
if ((where == "tab" || where == "tabshifted") &&
w && !w.toolbar.visible) {
w = getTopWin(true);
aRelatedToCurrent = false;