Closed
Bug 917217
Opened 11 years ago
Closed 11 years ago
Rename getUserDownloadsDirectory
Categories
(Toolkit :: Downloads API, defect)
Toolkit
Downloads API
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: Paolo, Assigned: raymondlee)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
The getUserDownloadsDirectory and getTemporaryDownloadsDirectory functions of
the Downloads API were named after the methods of nsIDownloadManager, but now
we must find new names that are more indicative of what the functions do.
Comment 1•11 years ago
|
||
I suggested getPreferredDownloadsDirectory, to replace getUser...
But I don't have any good ideas for the Temporary directory so far, nothing better than temporary, at least.
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #807033 -
Flags: review?(paolo.mozmail)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 807033 [details] [diff] [review]
Change getUserDownloadsDirectory to getPreferredDownloadsDirectory
Review of attachment 807033 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js
@@ +192,1 @@
> do_check_eq(downloadDir.path, userDownloadDir.path);
nit: "preferredDownloadDir"
Attachment #807033 -
Flags: review?(paolo.mozmail) → review+
Reporter | ||
Comment 4•11 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #1)
> I suggested getPreferredDownloadsDirectory, to replace getUser...
> But I don't have any good ideas for the Temporary directory so far, nothing
> better than temporary, at least.
We currently invoke functions called "deleteTemporaryFileOnExit" and "deleteTemporaryPrivateFileWhenPossible" on downloads that end up in that directory, so we may just keep the "getTemporaryDownloadsDirectory" name, in that it is for "temporary downloads" despite it's not necessarily the system's temporary directory.
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to :Paolo Amadini from comment #3)
> Comment on attachment 807033 [details] [diff] [review]
> Change getUserDownloadsDirectory to getPreferredDownloadsDirectory
>
> Review of attachment 807033 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: toolkit/components/jsdownloads/test/unit/test_DownloadIntegration.js
> @@ +192,1 @@
> > do_check_eq(downloadDir.path, userDownloadDir.path);
>
> nit: "preferredDownloadDir"
Addressed.
Pushed to try and waiting for result
https://tbpl.mozilla.org/?tree=Try&rev=63b8608acb86
Assignee | ||
Comment 6•11 years ago
|
||
Comment on attachment 808952 [details] [diff] [review]
Patch for checkin
Passed try.
https://tbpl.mozilla.org/?tree=Try&rev=63b8608acb86
Attachment #808952 -
Flags: checkin?
Comment 7•11 years ago
|
||
Comment on attachment 808952 [details] [diff] [review]
Patch for checkin
In the future, please just use checkin-needed for single-patch bugs :)
Attachment #808952 -
Flags: checkin? → checkin+
Comment 8•11 years ago
|
||
Flags: in-testsuite+
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla27
Assignee | ||
Updated•11 years ago
|
Summary: Rename getUserDownloadsDirectory and getTemporaryDownloadsDirectory → Rename getUserDownloadsDirectory
You need to log in
before you can comment on or make changes to this bug.
Description
•