зеркало из https://github.com/mozilla/gecko-dev.git
Bug #242123. Spaces in between the comma and a new-X arguement would not load. Need to verify the URL after arguments have been stripped. r=darin,sr=bryner
This commit is contained in:
Родитель
3cfbd00f0d
Коммит
816d2b91fb
|
@ -724,10 +724,6 @@ XRemoteService::OpenURL(nsCString &aArgument,
|
||||||
nsIDOMWindowInternal *aParent,
|
nsIDOMWindowInternal *aParent,
|
||||||
PRBool aOpenBrowser)
|
PRBool aOpenBrowser)
|
||||||
{
|
{
|
||||||
// check if we can handle this type of URL
|
|
||||||
if (!MayOpenURL(aArgument))
|
|
||||||
return NS_ERROR_ABORT;
|
|
||||||
|
|
||||||
// the eventual toplevel target of the load
|
// the eventual toplevel target of the load
|
||||||
nsCOMPtr<nsIDOMWindowInternal> finalWindow = aParent;
|
nsCOMPtr<nsIDOMWindowInternal> finalWindow = aParent;
|
||||||
|
|
||||||
|
@ -768,6 +764,10 @@ XRemoteService::OpenURL(nsCString &aArgument,
|
||||||
newWindow = PR_TRUE;
|
newWindow = PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if we can handle this type of URL
|
||||||
|
if (!MayOpenURL(aArgument))
|
||||||
|
return NS_ERROR_ABORT;
|
||||||
|
|
||||||
// try to fixup the argument passed in
|
// try to fixup the argument passed in
|
||||||
nsString url;
|
nsString url;
|
||||||
url.AssignWithConversion(aArgument.get());
|
url.AssignWithConversion(aArgument.get());
|
||||||
|
|
Загрузка…
Ссылка в новой задаче