Bug 1514604 - Fix referrer for "Go to Download Page" in download manager. r=IanN a=IanN
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Sun, 16 Dec 2018 21:11:20 +0100
changeset 31990 0f513cd47ccfab640b5e65a27577ed11dc9be03d
parent 31989 a85161ecb5ead8f46cd51a37494a9501c5ae8aaa
child 31991 93365656cb6222c3110bdc2890cb7b8755cc69bc
push id126
push userfrgrahl@gmx.net
push dateSun, 16 Dec 2018 20:11:52 +0000
treeherdercomm-esr60@0f513cd47ccf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1514604
Bug 1514604 - Fix referrer for "Go to Download Page" in download manager. r=IanN a=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);