GetWebShellTitleAndURL(aWebShell, &docTitleStr, &docURLStr);
GetWebShellTitleAndURL(aWebShell, mPrt->mPrintSettings, &docTitleStr, &docURLStr);
DocumentViewerImpl::SetDocAndURLIntoProgress(nsIWebShell* aWebShell,                                             nsIPrintProgressParams* aParams){  NS_ASSERTION(aWebShell, "Must have vaild nsIWebShell");  NS_ASSERTION(aParams, "Must have vaild nsIPrintProgressParams");  if (aWebShell == nsnull || aParams == nsnull) {    return;  }  PRUnichar * docTitleStr;  PRUnichar * docURLStr;  GetWebShellTitleAndURL(aWebShell, &docTitleStr, &docURLStr);   mPrt->mPrintProgressParams->SetDocTitle((const PRUnichar*) docTitleStr);  mPrt->mPrintProgressParams->SetDocURL((const PRUnichar*) docURLStr);  if (docTitleStr != nsnull) nsMemory::Free(docTitleStr);  if (docURLStr != nsnull) nsMemory::Free(docURLStr);}