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:
parent
73422ca090
commit
6950be64ea
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user