InitFrameData(PR_FALSE);
nsAutoString urlStr(aURLSpec);  nsCOMPtr<nsIURI> uri; nsXPIDLCString  spec; rv = NS_NewURI(getter_AddRefs(uri), urlStr, nsnull); if (NS_FAILED(rv)) {  nsAutoString urlSpec; urlStr.Trim(" ", PR_TRUE, PR_TRUE);
nsWebShell::LoadURL(const PRUnichar *aURLSpec,                    nsIInputStream* aPostDataStream,                    PRBool aModifyHistory,                    nsLoadFlags aType,                    const PRUint32 aLocalIP,                    nsISupports * aHistoryState,                    const PRUnichar* aReferrer){  // Initialize margnwidth, marginheight. Put scrolling back the way it was  // before the last document was loaded.	InitFrameData(PR_FALSE);  const char *cmd = mViewSource ? "view-source" : "view" ;  mViewSource = PR_FALSE; // reset it  return LoadURL(aURLSpec, cmd, aPostDataStream,                 aModifyHistory,aType, aLocalIP, aHistoryState,                 aReferrer);}