зеркало из https://github.com/mozilla/pjs.git
really fix bug 12493 - sr=darin, r=radha
move the check for mIOService into its own check
This commit is contained in:
Родитель
e45e88ea9c
Коммит
edc333be15
|
@ -709,20 +709,19 @@ nsWebShell::GetLinkState(const nsACString& aLinkURI, nsLinkState& aState)
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
|
|
||||||
// get the cached IO service
|
// get the cached IO service
|
||||||
if (!mIOService) {
|
if (!mIOService)
|
||||||
mIOService = do_GetService(NS_IOSERVICE_CONTRACTID, &rv);
|
mIOService = do_GetService(NS_IOSERVICE_CONTRACTID);
|
||||||
|
|
||||||
if (NS_SUCCEEDED(rv)) {
|
|
||||||
|
|
||||||
// clean up the url using the right parser
|
if (mIOService) {
|
||||||
nsCOMPtr<nsIURI> uri;
|
|
||||||
rv = NS_NewURI(getter_AddRefs(uri), aLinkURI, nsnull, nsnull,
|
|
||||||
mIOService);
|
|
||||||
|
|
||||||
// now get the fully canonicalized path
|
// clean up the url using the right parser
|
||||||
if (NS_SUCCEEDED(rv))
|
nsCOMPtr<nsIURI> uri;
|
||||||
rv = uri->GetSpec(resolvedPath);
|
rv = NS_NewURI(getter_AddRefs(uri), aLinkURI, nsnull, nsnull,
|
||||||
}
|
mIOService);
|
||||||
|
|
||||||
|
// now get the fully canonicalized path
|
||||||
|
if (NS_SUCCEEDED(rv))
|
||||||
|
rv = uri->GetSpec(resolvedPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
PRBool isVisited;
|
PRBool isVisited;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче