Bug 593408 - "Don't show file picker for Save Image, Save Link" [r=mark.finkle]
authorWesley Johnston <wjohnston@mozilla.com>
Fri, 03 Sep 2010 10:56:00 -0400
changeset 2087 cc2cefb3dbdeb9e30450939e757d28b5fb670623
parent 2086 2753b05a11d5b9b029c8332b2d9048d96b1d3186
child 2088 aba05d111c4ab2fc1c2b479aa31ffadde5a19599
push id1766
push usermfinkle@mozilla.com
push dateWed, 29 Sep 2010 18:51:55 +0000
reviewersmark
bugs593408
Bug 593408 - "Don't show file picker for Save Image, Save Link" [r=mark.finkle]
chrome/content/browser-ui.js
--- a/chrome/content/browser-ui.js
+++ b/chrome/content/browser-ui.js
@@ -2423,22 +2423,22 @@ var ContextHelper = {
 
 var ContextCommands = {
   openInNewTab: function cc_openInNewTab() {
     Browser.addTab(ContextHelper.popupState.linkURL, false, Browser.selectedTab);
   },
 
   saveLink: function cc_saveLink() {
     let browser = ContextHelper.popupState.target;
-    saveURL(ContextHelper.popupState.linkURL, null, "SaveLinkTitle", false, false, browser.documentURI);
+    saveURL(ContextHelper.popupState.linkURL, null, "SaveLinkTitle", false, true, browser.documentURI);
   },
 
   saveImage: function cc_saveImage() {
     let browser = ContextHelper.popupState.target;
-    saveImageURL(ContextHelper.popupState.mediaURL, null, "SaveImageTitle", false, false, browser.documentURI);
+    saveImageURL(ContextHelper.popupState.mediaURL, null, "SaveImageTitle", false, true, browser.documentURI);
   },
 
   shareLink: function cc_shareLink() {
     let state = ContextHelper.popupState;
     SharingUI.show(state.linkURL, state.linkTitle);
   },
 
   shareMedia: function cc_shareMedia() {