fix for bug #381453: when loaded in frames / iframes, pages that redirect show up in history

r=dietrich


git-svn-id: svn://10.0.0.236/trunk@226984 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%mozilla.org 2007-05-25 02:52:24 +00:00
parent 73422ca090
commit 6950be64ea

View File

@ -2835,6 +2835,11 @@ nsNavHistory::AddVisitChain(nsIURI* aURI, PRTime aTime,
&referringVisit, aSessionID, aRedirectBookmark);
NS_ENSURE_SUCCESS(rv, rv);
// for redirects in frames, we don't want to see those items in history
// see bug #381453 for more details
if (!aToplevel) {
transitionType = nsINavHistoryService::TRANSITION_EMBED;
}
} else if (aReferrer) {
// If there is a referrer, we know you came from somewhere, either manually
// or automatically. For toplevel windows, assume its manual and you want