mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
[Pale-Moon] [downloads] Stop using referrers as sources.
This commit is contained in:
parent
5c9b23f028
commit
68ed744bb6
1 changed files with 10 additions and 6 deletions
|
|
@ -80,17 +80,21 @@ this.DownloadsViewUI.DownloadElementShell.prototype = {
|
|||
|
||||
get extendedDisplayName() {
|
||||
let s = DownloadsCommon.strings;
|
||||
let referrer = this.download.source.referrer ||
|
||||
this.download.source.url;
|
||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(referrer);
|
||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url);
|
||||
return s.statusSeparator(this.displayName, displayHost);
|
||||
},
|
||||
|
||||
get extendedDisplayNameTip() {
|
||||
let s = DownloadsCommon.strings;
|
||||
let referrer = this.download.source.referrer ||
|
||||
this.download.source.url;
|
||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(referrer);
|
||||
let referrer = this.download.source.referrer;
|
||||
if (referrer) {
|
||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url) +
|
||||
' (' +
|
||||
DownloadUtils.getURIHost(referrer) +
|
||||
')';
|
||||
} else {
|
||||
let [displayHost, fullHost] = DownloadUtils.getURIHost(this.download.source.url);
|
||||
}
|
||||
return s.statusSeparator(this.displayName, fullHost);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue