mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
fix for bug 79707
code by ccarlen, sr=alecf, r=valeski simple null-check so that embeddors don't have to implement nsIBrowserHistory
This commit is contained in:
parent
c0539ae925
commit
51e88e8a5e
@ -2772,7 +2772,8 @@ nsDocShell::SetTitle(const PRUnichar * aTitle)
|
||||
mCurrentURI->GetSpec(getter_Copies(url));
|
||||
nsCOMPtr<nsIBrowserHistory> browserHistory =
|
||||
do_QueryInterface(mGlobalHistory);
|
||||
browserHistory->SetPageTitle(url, aTitle);
|
||||
if (browserHistory)
|
||||
browserHistory->SetPageTitle(url, aTitle);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user