mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Quick and dirty fix for Thunderbird failure to handle mailto urls from xremote (bug 261961). r+sr=mscott.
This commit is contained in:
parent
ea37a6b770
commit
c780fae79b
@ -767,6 +767,10 @@ XRemoteService::OpenURL(nsCString &aArgument,
|
||||
// If we're trying to open a new tab, we'll fall back to opening
|
||||
// a new window if there's no browser window open, so look for it
|
||||
// here.
|
||||
#ifdef MOZ_THUNDERBIRD
|
||||
newWindow = PR_FALSE;
|
||||
finalWindow = nsnull; // always use the URILoader code below
|
||||
#else
|
||||
if (aOpenBrowser && (!newWindow || newTab)) {
|
||||
nsCOMPtr<nsIDOMWindowInternal> lastUsedWindow;
|
||||
FindWindow(NS_LITERAL_STRING("navigator:browser").get(),
|
||||
@ -777,6 +781,7 @@ XRemoteService::OpenURL(nsCString &aArgument,
|
||||
else
|
||||
newWindow = PR_TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
// check if we can handle this type of URL
|
||||
if (!MayOpenURL(aArgument))
|
||||
|
Loading…
x
Reference in New Issue
Block a user