From 6950be64ea54df63814e666e0889f8dada7e1e2f Mon Sep 17 00:00:00 2001 From: "sspitzer%mozilla.org" Date: Fri, 25 May 2007 02:52:24 +0000 Subject: [PATCH] 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 --- mozilla/toolkit/components/places/src/nsNavHistory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/toolkit/components/places/src/nsNavHistory.cpp b/mozilla/toolkit/components/places/src/nsNavHistory.cpp index 86b6c73611a..baee88701a8 100644 --- a/mozilla/toolkit/components/places/src/nsNavHistory.cpp +++ b/mozilla/toolkit/components/places/src/nsNavHistory.cpp @@ -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