mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Bug #54373 --> make relative links work in the message pane by enabling the ability
to resolve URLs. sr=bienvenu
This commit is contained in:
parent
3b3fbeea7a
commit
e1d9a0bf74
@ -492,14 +492,7 @@ NS_IMETHODIMP nsMsgMailNewsUrl::Clone(nsIURI **_retval)
|
||||
|
||||
NS_IMETHODIMP nsMsgMailNewsUrl::Resolve(const char *relativePath, char **result)
|
||||
{
|
||||
// mailnews urls aren't like http or file urls...
|
||||
// we don't have relative urls you can resolve against other urls.
|
||||
// in fact, trying to do so leads to very bad things!! so instead
|
||||
// of trying to resolve the url, return the input string as a dummy
|
||||
// place holder. I tried returning just an error code but too many
|
||||
// callers always assume they get back a url =(
|
||||
*result = nsCRT::strdup(relativePath);
|
||||
return NS_OK;
|
||||
return m_baseURL->Resolve(relativePath, result);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgMailNewsUrl::GetDirectory(char * *aDirectory)
|
||||
|
Loading…
Reference in New Issue
Block a user