Bug 1514604 - Fix referrer for "Go to Download Page" in download manager. r=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 16 Dec 2018 21:09:50 +0100
changeset 34007 8a2e9e2507a0d01f181673ef2c99e026ac5ad6c7
parent 34006 267863b0ad58c324760e8320f112ffd5b8793525
child 34008 832d6196becb5dc186f3eb25e27adcae644d14ec
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersIanN
bugs1514604
Bug 1514604 - Fix referrer for "Go to Download Page" in download manager. r=IanN
suite/components/downloads/content/downloadmanager.js
--- a/suite/components/downloads/content/downloadmanager.js
+++ b/suite/components/downloads/content/downloadmanager.js
@@ -507,17 +507,17 @@ var dlTreeController = {
         break;
       case "cmd_open":
         openDownload(selItemData[0]);
         break;
       case "cmd_show":
         showDownload(selItemData[0]);
         break;
       case "cmd_openReferrer":
-        openUILink(selItemData[0].referrer);
+        openUILink(selItemData[0].source.referrer);
         break;
       case "cmd_copyLocation":
         var clipboard = Cc["@mozilla.org/widget/clipboardhelper;1"]
                           .getService(Ci.nsIClipboardHelper);
         var uris = [];
         for (let dldata of selItemData)
           uris.push(dldata.source.url);
           clipboard.copyString(uris.join("\n"), document);