Bug 189222 - TestGtkEmbed crashes when clicking on link. r=nisheeth/sr=dbaron/a=dbaron

This commit is contained in:
ccarlen%netscape.com 2003-01-29 22:03:08 +00:00
Родитель 1868d04890
Коммит 53553f537f
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -6440,8 +6440,12 @@ nsDocShell::AddToGlobalHistory(nsIChannel* aChannel, nsIURI * aURI, PRBool aHidd
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIBrowserHistory> browserHistory =
do_QueryInterface(mGlobalHistory);
browserHistory->OutputReferrerURL(spec.get(),
referrerSpec.get());
// In embedding environments, the "lite" global history
// implementation might not implement nsIBrowserHistory.
if (browserHistory) {
browserHistory->OutputReferrerURL(spec.get(),
referrerSpec.get());
}
}
}
}