Closed
Bug 1500826
Opened 7 years ago
Closed 7 years ago
getFolderFromUri is broken
Categories
(MailNews Core :: General, enhancement)
MailNews Core
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 65.0
People
(Reporter: darktrojan, Assigned: darktrojan)
Details
Attachments
(1 file, 1 obsolete file)
|
2.12 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
https://searchfox.org/comm-central/source/mailnews/base/util/folderUtils.jsm#111
getFolderById isn't a member of nsIFolderLookupService. It hasn't really mattered since nothing uses it, but now I want to. Maybe I'll just make the service a member of MailServices.
| Assignee | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment on attachment 9019181 [details] [diff] [review]
1500826-folder-from-uri-1.diff
Review of attachment 9019181 [details] [diff] [review]:
-----------------------------------------------------------------
r+ wc (with comments, as the Calendar people say).
::: mailnews/base/util/MailServices.jsm
@@ +73,5 @@
> "mozINewMailNotificationService");
> +
> +XPCOMUtils.defineLazyServiceGetter(MailServices, "folderLookup",
> + "@mozilla.org/mail/folder-lookup;1",
> + "nsIFolderLookupService");
Why add it in this patch? If it's a preparation for some use elsewhere, please add it in that bug. No need to add unused code here.
Or am I missing something?
::: mailnews/base/util/folderUtils.jsm
@@ -114,5 @@
> - * @param aUri the rdf uri of the folder to return
> - */
> -function getFolderFromUri(aUri) {
> - return Cc["@mozilla.org/mail/folder-lookup;1"].
> - getService(Ci.nsIFolderLookupService).getFolderById(aUri);
OK, this is broken and gets removed. Fine.
Attachment #9019181 -
Flags: review?(jorgk) → review+
| Assignee | ||
Comment 3•7 years ago
|
||
Fair enough.
Attachment #9019181 -
Attachment is obsolete: true
Attachment #9019239 -
Flags: review+
| Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/95f2852bdd11
Remove broken folderUtils.getFolderFromUri. r=jorgk
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 65.0
You need to log in
before you can comment on or make changes to this bug.
Description
•