31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
# HG changeset patch
|
|
# User Gijs Kruitbosch <gijskruitbosch@gmail.com>
|
|
# Date 1597251031 0
|
|
# Wed Aug 12 16:50:31 2020 +0000
|
|
# Node ID 082de8244278d76f9d6d216a7fd5da772b5152d3
|
|
# Parent cc6db3162f6e3e9cdb85749054b52074b78c1643
|
|
Bug 1641487, r=jaws
|
|
|
|
Differential Revision: https://phabricator.services.mozilla.com/D86761
|
|
|
|
diff -r cc6db3162f6e -r 082de8244278 browser/components/downloads/DownloadsViewUI.jsm
|
|
--- a/browser/components/downloads/DownloadsViewUI.jsm Wed Aug 12 14:52:18 2020 +0000
|
|
+++ b/browser/components/downloads/DownloadsViewUI.jsm Wed Aug 12 16:50:31 2020 +0000
|
|
@@ -342,15 +342,7 @@
|
|
* Downloads View. Type is either l10n object or string literal.
|
|
*/
|
|
showStatusWithDetails(stateLabel, hoverStatus) {
|
|
- let referrer =
|
|
- this.download.source.referrerInfo &&
|
|
- this.download.source.referrerInfo.originalReferrer
|
|
- ? this.download.source.referrerInfo.originalReferrer.spec
|
|
- : null;
|
|
-
|
|
- let [displayHost] = DownloadUtils.getURIHost(
|
|
- referrer || this.download.source.url
|
|
- );
|
|
+ let [displayHost] = DownloadUtils.getURIHost(this.download.source.url);
|
|
let [displayDate] = DownloadUtils.getReadableDates(
|
|
new Date(this.download.endTime)
|
|
);
|