if (aStatus == nsIWebProgressListener::STATE_STOP) { mComplete = PR_TRUE; } return NS_OK;
if (aStateFlags & nsIWebProgressListener::STATE_STOP && aStateFlags & nsIWebProgressListener::STATE_IS_DOCUMENT) { mComplete = PR_TRUE; } return NS_OK;
NS_IMETHODIMP PrintListener::OnStateChange(nsIWebProgress *aWebProgress, nsIRequest *aRequest, PRUint32 aStateFlags, nsresult aStatus){  if (aStatus == nsIWebProgressListener::STATE_STOP) {    mComplete = PR_TRUE;  }  return NS_OK;}