@@ -519,11 +519,10 @@ export var DownloadIntegration = {
519
519
// the application to hang, or other performance issues.
520
520
// The stream created in this way is forward-compatible with all the
521
521
// current and future versions of Windows.
522
- const url = aDownload . source . originalUrl || aDownload . source . url ;
523
522
if ( AppConstants . platform == "win" && this . _shouldSaveZoneInformation ( ) ) {
524
523
let zone ;
525
524
try {
526
- zone = lazy . gDownloadPlatform . mapUrlToZone ( url ) ;
525
+ zone = lazy . gDownloadPlatform . mapUrlToZone ( aDownload . source . url ) ;
527
526
} catch ( e ) {
528
527
// Default to Internet Zone if mapUrlToZone failed for
529
528
// whatever reason.
@@ -535,7 +534,7 @@ export var DownloadIntegration = {
535
534
let path = aDownload . target . path + ":Zone.Identifier" ;
536
535
try {
537
536
let zoneId = "[ZoneTransfer]\r\nZoneId=" + zone + "\r\n" ;
538
- let { isPrivate, referrerInfo } = aDownload . source ;
537
+ let { url , isPrivate, referrerInfo } = aDownload . source ;
539
538
if ( ! isPrivate ) {
540
539
let referrer = referrerInfo
541
540
? referrerInfo . computedReferrerSpec
@@ -601,7 +600,7 @@ export var DownloadIntegration = {
601
600
}
602
601
603
602
await lazy . gDownloadPlatform . downloadDone (
604
- lazy . NetUtil . newURI ( url ) ,
603
+ lazy . NetUtil . newURI ( aDownload . source . url ) ,
605
604
aReferrer ,
606
605
new lazy . FileUtils . File ( aDownload . target . path ) ,
607
606
aDownload . contentType ,
0 commit comments