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 33153 8a2e9e2507a0
parent 33152 267863b0ad58
child 33154 832d6196becb
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);