Bug 1109146 - skip prompt for downloading a file when you alt+click a link; r?felipe draft
authorJimmy Wang <jimmyw22@gmail.com>
Tue, 10 May 2016 13:24:19 -0400
changeset 403727 28b1510923caed796b46510d04848742e26d29fe
parent 403726 066b7df14d37e1197e8481bf574aefb2747e9dc9
child 403728 08315f5d809ffaa9d1fed36d01d87869a30fb132
push id26991
push userjimmyw22@gmail.com
push dateMon, 22 Aug 2016 01:16:40 +0000
reviewersfelipe
bugs1109146
milestone51.0a1
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
browser/base/content/utilityOverlay.js
--- 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;