зеркало из https://github.com/mozilla/gecko-dev.git
Bug #16394 --> no longer need to call intialize after creating a url
r=jefft
This commit is contained in:
Родитель
fcd8e0024b
Коммит
9518826bba
|
@ -435,11 +435,6 @@ nsImapService::CreateStartOfImapUrl(nsIImapUrl ** imapUrl,
|
||||||
if (NS_SUCCEEDED(rv) && mailnewsUrl && aUrlListener)
|
if (NS_SUCCEEDED(rv) && mailnewsUrl && aUrlListener)
|
||||||
mailnewsUrl->RegisterListener(aUrlListener);
|
mailnewsUrl->RegisterListener(aUrlListener);
|
||||||
|
|
||||||
(*imapUrl)->Initialize(username);
|
|
||||||
|
|
||||||
// *** jefft -- let's only do hostname now. I'll do username later
|
|
||||||
// when the incoming server works were done. We might also need to
|
|
||||||
// pass in the port number
|
|
||||||
urlSpec = "imap://";
|
urlSpec = "imap://";
|
||||||
urlSpec.Append(username);
|
urlSpec.Append(username);
|
||||||
urlSpec.Append('@');
|
urlSpec.Append('@');
|
||||||
|
@ -2074,7 +2069,6 @@ NS_IMETHODIMP nsImapService::NewURI(const char *aSpec, nsIURI *aBaseURI, nsIURI
|
||||||
nsresult rv = nsComponentManager::CreateInstance(kImapUrlCID, nsnull, NS_GET_IID(nsIImapUrl), getter_AddRefs(aImapUrl));
|
nsresult rv = nsComponentManager::CreateInstance(kImapUrlCID, nsnull, NS_GET_IID(nsIImapUrl), getter_AddRefs(aImapUrl));
|
||||||
if (NS_SUCCEEDED(rv))
|
if (NS_SUCCEEDED(rv))
|
||||||
{
|
{
|
||||||
aImapUrl->Initialize(nsnull);
|
|
||||||
// now extract lots of fun information...
|
// now extract lots of fun information...
|
||||||
nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(aImapUrl);
|
nsCOMPtr<nsIMsgMailNewsUrl> mailnewsUrl = do_QueryInterface(aImapUrl);
|
||||||
nsCAutoString unescapedSpec = aSpec;
|
nsCAutoString unescapedSpec = aSpec;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче