Merge pull request #22945 from nullaus/bug1053509

bug 1053509 - Use plain js download object when download succeeds. r=crd...
(cherry picked from commit 385f8b1fc9179441c9d6a6ad16ff8701edfa1faa)
Merge pull request #23006 from nullaus/v2.0

Merge pull request #22945 from nullaus/bug1053509