Closed Bug 19992 Opened 26 years ago Closed 26 years ago

Eliminate nsIMimeURLUtils

Categories

(MailNews Core :: MIME, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: BenB, Assigned: rhp)

References

Details

(Keywords: verifyme)

Attachments

(1 file)

Necko and my new scanner class now have the same (and better functionality). The scan functions had just 3 users, which I already changed to my new class. What remains are the URL utility functions, which have newer counterparts in Necko. I found only 2 users, which both proxy more calls through a function: <http://lxr.mozilla.org/seamonkey/source/mailnews/compose/src/nsMsgCompUtils.cpp#1916> and <http://lxr.mozilla.org/seamonkey/source/mailnews/mime/src/mimemrel.cpp#349>. mimehdrs.cpp includes nsMimeURLUtils, but seems not to use it. All other references to nsIMimeURLUtils functions I found were either to Netlib or commented out. I tried to change the to functions to Necko and delete ns(I)MimeURLUtils.*, but had problems with Necko and XPCOM. I'll attach the state of my work, but it's not more than hints.
The classes with use the scanner functions and with I was able to migrate are: nsMsgSendPart.cpp, mimetpla.cpp and mimetpfl.cpp
Status: NEW → ASSIGNED
Target Milestone: M12
Ben, I'm a little confused here. If I made the changes that are in the patch, will everything still work? The patch looks like a lot of code being removed. - rhp
Depends on: 19251
rhp, no, please don't check this patch in. It will horribly break a lot of code. That's why I assigned this to you: I was unable to complete that. However, the patch (and my description on this bug) might be a good start. I forgot to add a dependency on 19251. Done.
The replacement functions we need to use would be helpful here. - rhp
ParseURL (used in function nsMsgParseURL in nsMsgCompUtils.cpp): You can create a new URL (nsIURL or nsStdURL?) with the string URL as spec and the use the Get functions (GetHost etc.) to get the asked parts. MakeAbsoluteURL (used in MakeAbsoluteURL in mimemrel.cpp): You can use NS_MakeAbsoluteURL (see <http://lxr.mozilla.org/seamonkey/source/network/module/nsNetService.cpp#1169> and <http://lxr.mozilla.org/seamonkey/source/network/public/nsIURL.h#119>) or, if you have no access to that function, do the same what it does. All other functions seem to be unused.
I've done some work on this but it is not as simple as it may seem. Many of the Necko functions are not accessable outside of necko and the semantics of some of these are different even though the name is the same. I'll see what I can do. - rhp
Yes, I had similar problems. Set priority/severity as you like. Don't care about the scanner funtions, I already threw them out.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
This was taken care of when landing the big TXT - HTML conversion landing. - rhp
Keywords: verifyme
thanks, Ben.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: