Closed
Bug 235584
Opened 21 years ago
Closed 21 years ago
vCards no longer being attached to outgoing mail
Categories
(MailNews Core :: Composition, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7beta
People
(Reporter: mscott, Assigned: mscott)
Details
(Keywords: regression)
Attachments
(1 file)
836 bytes,
patch
|
darin.moz
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
summary says it all
Assignee | ||
Comment 1•21 years ago
|
||
I wonder if this might be a subtle string regression. The calling code looks
like this:
nsXPIDLCString escapedVCard;
// make sure, if there is no card, this returns an empty string, or failure
if (NS_SUCCEEDED(identity->GetEscapedVCard(getter_Copies(escapedVCard))) &&
!escapedVCard.IsEmpty())
{
do stuff
}
What I'm now seeing after the string changes is that GetScapedVCard IS called
first, we return from that (I even see us return from getter_Copies) then we
enter escapedVCard.IsEmpty but the xpidlstring still doesn't show the vCard
string internally so isEmpty turns out to be true. As soon as the if statement
loses scope, the idl string suddenly shows the vCard string internally.
I'm sure the fix is an easy break down of the if statement but I thought it
interesting to point out a possible run time difference in the new string class
in case others have issues to..
Keywords: regression
Target Milestone: --- → mozilla1.7beta
Assignee | ||
Comment 2•21 years ago
|
||
this work around breaks the old if statement into two lines...
Assignee | ||
Comment 3•21 years ago
|
||
Comment on attachment 142250 [details] [diff] [review]
work around
darin, I'm worried that the fact that this now fails with the new string APIs
could also be breaking lots of other callers that were using the old pattern
here that we don't know about yet.
Hence asking you to r= the workaround so you can determine if you think
something needs to change in the new string classes to make this case work like
it used to.
Attachment #142250 -
Flags: superreview?(bienvenu)
Attachment #142250 -
Flags: review?(darin)
Comment 4•21 years ago
|
||
Comment on attachment 142250 [details] [diff] [review]
work around
r=darin
this is actually the same problem that was uncovered in bug 234908.
the correct fix is what you have done here. see bug 234908 for more details.
Attachment #142250 -
Flags: review?(darin) → review+
Updated•21 years ago
|
Attachment #142250 -
Flags: superreview?(bienvenu) → superreview+
Assignee | ||
Comment 5•21 years ago
|
||
thanks for the clarification Darin! Fix checked in.
It may be worthwhile for me to try to search through all the getter_Copies code
in mailnews to try to catch any more patterns like this....
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•