Fixed assertion with loading an URL due to changes with status now firing.
This commit is contained in:
Родитель
1d43e083e8
Коммит
3446f018d4
|
@ -40,7 +40,8 @@
|
|||
//*** nsWebBrowserChrome: Object Management
|
||||
//*****************************************************************************
|
||||
|
||||
nsWebBrowserChrome::nsWebBrowserChrome() : mBrowserWindow(nsnull)
|
||||
nsWebBrowserChrome::nsWebBrowserChrome() : mBrowserWindow(nsnull),
|
||||
mProgressStatusFlags(0)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
@ -359,8 +360,20 @@ NS_IMETHODIMP nsWebBrowserChrome::OnChildProgressChange(nsIChannel* aChannel,
|
|||
NS_IMETHODIMP nsWebBrowserChrome::OnStatusChange(nsIChannel* aChannel,
|
||||
PRInt32 aProgressStatusFlags)
|
||||
{
|
||||
/* if(aProgressStatusFlags & nsIWebProgress::flag_networkActivity)
|
||||
{ // There is network activity now
|
||||
|
||||
}
|
||||
else
|
||||
{ // There is no network Activity
|
||||
if(mProgressStatusFlags & nsIWebProgress::flag_networkActivity)
|
||||
{ // If there was netwoerk activity before
|
||||
OnLoadFinished(nsIChannel);
|
||||
}
|
||||
}
|
||||
|
||||
//XXXTAB Implement
|
||||
NS_ERROR("NotYetImplemented");
|
||||
NS_ERROR("NotYetImplemented");*/
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ protected:
|
|||
|
||||
protected:
|
||||
nsBrowserWindow* mBrowserWindow;
|
||||
PRInt32 mProgressStatusFlags;
|
||||
};
|
||||
|
||||
#endif /* nsWebBrowserChrome_h__ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче