mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 189222 - TestGtkEmbed crashes when clicking on link. r=nisheeth/sr=dbaron/a=dbaron
This commit is contained in:
parent
1868d04890
commit
53553f537f
@ -6440,11 +6440,15 @@ nsDocShell::AddToGlobalHistory(nsIChannel* aChannel, nsIURI * aURI, PRBool aHidd
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
nsCOMPtr<nsIBrowserHistory> browserHistory =
|
||||
do_QueryInterface(mGlobalHistory);
|
||||
// In embedding environments, the "lite" global history
|
||||
// implementation might not implement nsIBrowserHistory.
|
||||
if (browserHistory) {
|
||||
browserHistory->OutputReferrerURL(spec.get(),
|
||||
referrerSpec.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// this is a redirect, so hide the page from
|
||||
// being enumerated in history
|
||||
|
Loading…
Reference in New Issue
Block a user