mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Download manager. Not part of build.
This commit is contained in:
parent
45315576a3
commit
cd2d695468
@ -111,7 +111,7 @@ var downloadViewController = {
|
||||
return selectionCount > 0;
|
||||
case "cmd_remove":
|
||||
// XXX ensure selection isn't still in progress
|
||||
// how to handle multiple selection?
|
||||
// and how to handle multiple selection?
|
||||
return selectionCount > 0;
|
||||
case "cmd_selectAll":
|
||||
return gDownloadViewChildren.childNodes.length != selectionCount;
|
||||
|
@ -50,7 +50,6 @@
|
||||
<script type="application/x-javascript" src="chrome://global/content/treePopups.js"/>
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/downloadmanager/downloadmanager.js"/>
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/downloadmanager/nsDownloadProgressListener.js"/>
|
||||
|
||||
<stringbundle id="downloadBundle"
|
||||
src="chrome://communicator/locale/downloadmanager/downloadmanager.properties"/>
|
||||
|
@ -54,7 +54,7 @@
|
||||
|
||||
/* Outstanding issues/todo:
|
||||
* 1. Using the target path as an identifier is not sufficient because it's not unique on mac.
|
||||
* 2. Implement pause/resume
|
||||
* 2. Implement pause/resume.
|
||||
*/
|
||||
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
@ -403,7 +403,7 @@ nsDownloadManager::CancelDownload(const char* aKey)
|
||||
nsCOMPtr<nsIWebBrowserPersist> persist;
|
||||
item->GetPersist(getter_AddRefs(persist));
|
||||
if (persist)
|
||||
persist->CancelSave();
|
||||
rv = persist->CancelSave();
|
||||
|
||||
// if an observer was provided, notify that the download was cancelled.
|
||||
// if no persist was provided, this is necessary so that whatever transfer
|
||||
|
Loading…
Reference in New Issue
Block a user