Bug 224829 - docshell should not require non-gecko interface nsIBrowserHistory. This was fixed by introducing a new interface nsIGlobalHistory2 to replace the current nsIGlobalHistory. There are two-way adapters so that the frozen interface still works. r=biesi sr=bz a=mscott for toolkit/ changes.

git-svn-id: svn://10.0.0.236/trunk@152632 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net
2004-02-11 02:10:04 +00:00
parent 3ca6a33f19
commit d436ad454d
43 changed files with 1120 additions and 658 deletions

View File

@@ -711,11 +711,8 @@ nsWebShell::GetLinkState(nsIURI* aLinkURI, nsLinkState& aState)
if (!mGlobalHistory)
return NS_OK;
nsCAutoString spec;
aLinkURI->GetSpec(spec);
PRBool isVisited;
NS_ENSURE_SUCCESS(mGlobalHistory->IsVisited(spec.get(), &isVisited),
NS_ENSURE_SUCCESS(mGlobalHistory->IsVisited(aLinkURI, &isVisited),
NS_ERROR_FAILURE);
if (isVisited)
aState = eLinkState_Visited;