Bug 822689 - Nothing happens when clicking on a compete download in the Downloads Panel.
authorMarco Bonardo <mbonardo@mozilla.com>
Tue, 18 Dec 2012 18:02:03 +0100
changeset 125516 f3d710952f62d5ab8d11c330364967756d81111e
parent 125515 985bab8f84dfe203e9735a1937d2fbfa32f4d3e4
child 125517 70f6be1bebf580633bf3053803c96da898a31e60
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs822689
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 822689 - Nothing happens when clicking on a compete download in the Downloads Panel. r=mconley
browser/components/downloads/content/downloads.js
--- a/browser/components/downloads/content/downloads.js
+++ b/browser/components/downloads/content/downloads.js
@@ -1248,17 +1248,17 @@ DownloadsViewItemController.prototype = 
 
     downloadsCmd_cancel: function DVIC_downloadsCmd_cancel()
     {
       this.dataItem.cancel();
     },
 
     downloadsCmd_open: function DVIC_downloadsCmd_open()
     {
-      this.dataItem.openLocalFile();
+      this.dataItem.openLocalFile(window);
       // We explicitly close the panel here to give the user the feedback that
       // their click has been received, and we're handling the action.
       // Otherwise, we'd have to wait for the file-type handler to execute
       // before the panel would close. This also helps to prevent the user from
       // accidentally opening a file several times.
       DownloadsPanel.hidePanel();
     },