Closed Bug 421443 Opened 16 years ago Closed 16 years ago

Remove rdf dependent methods from nsIMessenger.idl

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9

People

(Reporter: jminta, Assigned: jminta)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

nsIMessenger includes several methods that require an rdf datasource as an argument.  There are perfectly good ways of making these calls from the front-end without passing in such an argument.  Moreover, most of the time these centralized methods aren't used.  I think avoiding these methods is a good thing, promoting better modularity in the code, rather than requiring everything to funnel through the central object.  Thus, I'm suggesting that we simply remove these methods, rather than reimplement them in non-rdf ways.

Again, some minor conflicts with the js-tree patch, but conflicts that make that patch simpler in the long run.
Attachment #307867 - Flags: superreview?(bienvenu)
Attachment #307867 - Flags: review?(bienvenu)
Comment on attachment 307867 [details] [diff] [review]
patch v1
[Checkin: Comment 3+9]

looks good - there are a couple places where you don't really need local vars, like this:

+        var folder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);
+        folder.emptyTrash(msgWindow, null);

but I'll leave that up to you...
Attachment #307867 - Flags: superreview?(bienvenu)
Attachment #307867 - Flags: superreview+
Attachment #307867 - Flags: review?(bienvenu)
Attachment #307867 - Flags: review+
Joey, when do you think you'll land the patch? It's blocking some of the stuff in bug 435290.

If not, then will it be alright if someone else checks the patch in?
Blocks: 435290
Patch checked in.

For regressions, look at various folder actions, specifically:
-deleting folders
-emptying trash
-compacting folders
-renaming folders
-copying/moving messages and folders to other folders

Checking in mail/base/content/mail3PaneWindowCommands.js;
/cvsroot/mozilla/mail/base/content/mail3PaneWindowCommands.js,v  <--  mail3PaneWindowCommands.js
new revision: 1.45; previous revision: 1.44
done
Checking in mail/base/content/widgetglue.js;
/cvsroot/mozilla/mail/base/content/widgetglue.js,v  <--  widgetglue.js
new revision: 1.23; previous revision: 1.22
done
Checking in mailnews/base/public/nsIMessenger.idl;
/cvsroot/mozilla/mailnews/base/public/nsIMessenger.idl,v  <--  nsIMessenger.idl
new revision: 1.75; previous revision: 1.74
done
Checking in mailnews/base/resources/content/messengerdnd.js;
/cvsroot/mozilla/mailnews/base/resources/content/messengerdnd.js,v  <--  messengerdnd.js
new revision: 1.64; previous revision: 1.63
done
Checking in mailnews/base/resources/content/widgetglue.js;
/cvsroot/mozilla/mailnews/base/resources/content/widgetglue.js,v  <--  widgetglue.js
new revision: 1.176; previous revision: 1.175
done
Checking in mailnews/base/src/nsMessenger.cpp;
/cvsroot/mozilla/mailnews/base/src/nsMessenger.cpp,v  <--  nsMessenger.cpp
new revision: 1.388; previous revision: 1.387
done
Checking in mailnews/base/src/nsMessenger.h;
/cvsroot/mozilla/mailnews/base/src/nsMessenger.h,v  <--  nsMessenger.h
new revision: 1.49; previous revision: 1.48
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
This broke compacting all folders - I'll try to find a fix. 
this restores the old logic for doing a compact vs. doing a compact all.
Attachment #322948 - Flags: review?(bugzilla)
Target Milestone: --- → mozilla1.9
Comment on attachment 322948 [details] [diff] [review]
fix compact all
[Checkin: Comment 10]

Well this works fine and fixes the problem, but I don't have review privs for mail/ :-(
Attachment #322948 - Flags: review?(bugzilla)
Comment on attachment 322948 [details] [diff] [review]
fix compact all
[Checkin: Comment 10]

Yes this works fine, David. r=me
Attachment #322948 - Flags: review+
Attachment #322948 - Attachment description: fix compact all → [checked in]fix compact all
Product: Core → MailNews Core
Looks like this was done ages ago.
Depends on: 506004
Depends on: 477394
Depends on: 439364
Comment on attachment 322948 [details] [diff] [review]
fix compact all
[Checkin: Comment 10]


http://bonsai.mozilla.org/cvslog.cgi?file=mozilla/mail/base/content/widgetglue.js&rev=HEAD&mark=1.24#1.25
Attachment #322948 - Attachment description: [checked in]fix compact all → fix compact all [Checkin: Comment 10]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: