Now call OnLoadingSite() when DoContent is processed. mLoadCookie is now stored on the docshell instead of the contentListenr. Work for 13374 and landing of new session history/ uriloading. r=mscott a=jevering

This commit is contained in:
tbogard%aol.net 2000-02-24 04:13:31 +00:00
Родитель 6eaf848c3f
Коммит 34d48e7719
2 изменённых файлов: 6 добавлений и 8 удалений

Просмотреть файл

@ -83,10 +83,9 @@ NS_IMETHODIMP nsDSURIContentListener::DoContent(const char* aContentType, nsURIL
if(loadAttribs & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI)
mDocShell->StopCurrentLoads();
nsCOMPtr<nsIURI> aUri;
aOpenedChannel->GetURI(getter_AddRefs(aUri));
mDocShell->AddCurrentSiteToHistories();
mDocShell->SetCurrentURI(aUri);
nsCOMPtr<nsIURI> aURI;
aOpenedChannel->GetURI(getter_AddRefs(aURI));
mDocShell->OnLoadingSite(aURI);
// XX mDocShell->CreateContentViewer();
@ -189,7 +188,7 @@ nsDSURIContentListener::SetParentContentListener(nsIURIContentListener*
NS_IMETHODIMP
nsDSURIContentListener::GetLoadCookie(nsISupports ** aLoadCookie)
{
*aLoadCookie = mLoadCookie;
*aLoadCookie = mDocShell->mLoadCookie;
NS_IF_ADDREF(*aLoadCookie);
return NS_OK;
}
@ -197,7 +196,7 @@ nsDSURIContentListener::GetLoadCookie(nsISupports ** aLoadCookie)
NS_IMETHODIMP
nsDSURIContentListener::SetLoadCookie(nsISupports * aLoadCookie)
{
mLoadCookie = aLoadCookie;
mDocShell->mLoadCookie = aLoadCookie;
return NS_OK;
}

Просмотреть файл

@ -49,9 +49,8 @@ protected:
protected:
nsDocShell* mDocShell;
nsCOMPtr<nsIPresContext> mPresContext;
nsCOMPtr<nsISupports> mLoadCookie; // the load cookie associated with the window context.
nsIURIContentListener* mParentContentListener; // Weak Reference
nsIURIContentListener* mParentContentListener; // Weak Reference
};
#endif /* nsDSURIContentListener_h__ */