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:
Родитель
6eaf848c3f
Коммит
34d48e7719
|
@ -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,7 +49,6 @@ protected:
|
|||
protected:
|
||||
nsDocShell* mDocShell;
|
||||
nsCOMPtr<nsIPresContext> mPresContext;
|
||||
nsCOMPtr<nsISupports> mLoadCookie; // the load cookie associated with the window context.
|
||||
|
||||
nsIURIContentListener* mParentContentListener; // Weak Reference
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче