Closed Bug 658877 Opened 14 years ago Closed 14 years ago

fix nsIURI build bustage caused by fix for bug 308590

Categories

(MailNews Core :: Backend, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 8.0

People

(Reporter: Bienvenu, Assigned: Bienvenu)

References

Details

Attachments

(1 file, 3 obsolete files)

No description provided.
will try to work on this this afternoon
Severity: normal → blocker
OS: Windows 7 → All
Hardware: x86 → All
this just defers to the base url (except for Equals and EqualsExceptRef, which probably could do the same) I'm going to land this, and see what the test results are, because I have to run out in a minute
Assignee: nobody → dbienvenu
Attached patch nsSmtpUrl fix (obsolete) — Splinter Review
This might help make more greenness (if it is correct).
Attachment #534326 - Flags: review?(dbienvenu)
Hmmm, not quite, I get: comm-central/mailnews/compose/src/nsSmtpService.cpp: In function ‘nsresult NS_MsgBuildSmtpUrl(nsIFile*, nsISmtpServer*, const char*, nsIMsgIdentity*, nsIUrlListener*, nsIMsgStatusFeedback*, nsIInterfaceRequestor*, nsIURI**, PRBool)’: comm-central/mailnews/compose/src/nsSmtpService.cpp:181:54: warning: enumeral mismatch in conditional expression: ‘nsISmtpUrl::<anonymous enum>’ vs ‘nsISmtpUrl::<anonymous enum>’ comm-central/mailnews/compose/src/nsSmtpService.cpp: In static member function ‘static PRBool nsSmtpService::findServerByHostname(nsISmtpServer*, void*)’: comm-central/mailnews/compose/src/nsSmtpService.cpp:727:79: warning: suggest parentheses around ‘&&’ within ‘||’
Attachment #534326 - Flags: review?(dbienvenu)
Ok, this time with the missing semi-colons in place
Attachment #534326 - Attachment is obsolete: true
Attachment #534327 - Flags: review?(dbienvenu)
Attachment #534327 - Flags: review?(neil)
Ian, I don't think that last patch is the right one for this bug (at least, for me to review)
sorry, I forgot to push one directory - compose change pushed.
Attachment #534327 - Flags: review?(neil)
Attachment #534327 - Flags: review?(dbienvenu)
Oops, too many windows and bugs being worked on. This should be the correct patch. Tested locally.
Attachment #534327 - Attachment is obsolete: true
Attachment #534331 - Flags: review?(dbienvenu)
For mailto: and addbook: URLs I think we can just ignore or throw on ref operations. But unfortunately I don't think we can do this for mail/news URLs because of internal anchors. (CloneIgnoringRef is particularly tricky.)
Blocks: 308590
(In reply to comment #10) > For mailto: and addbook: URLs I think we can just ignore or throw on ref > operations. But unfortunately I don't think we can do this for mail/news > URLs because of internal anchors. (CloneIgnoringRef is particularly tricky.) Joshua thoughts ?
(In reply to comment #10) > For mailto: and addbook: URLs I think we can just ignore or throw on ref > operations. But unfortunately I don't think we can do this for mail/news > URLs because of internal anchors. (CloneIgnoringRef is particularly tricky.) For news URLs, the only ones that have the anchor are the news-message: URIs, which shouldn't be a problem since we only create and consume such nsNntpUrl objects internally, and don't release them outside where someone might want to start calling Clone. That should be true for all *-message URIs; at a pinch, CloneIgnoringRef could simply treat those as not being ref portions of the URI. Or, barring that, we might be able to s/#/;/ in all *-message URI stuff. I recall doing archaeology on thew *-message stuff, and, IIRC, the primary reason for using `#' was something related with RDF which has long since ceased to be the case. s/#/;/ might also make it play better with URIs... running around with a URI where the ref is meaningful is just asking for trouble :-) .
Comment on attachment 534331 [details] [diff] [review] The correct patch with semi-colons don't think we need this
Attachment #534331 - Attachment is obsolete: true
Attachment #534331 - Flags: review?(dbienvenu)
I think we can mark this fixed now and deal with remaining issues in other bugs (which I think we've already been doing)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 8.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: