Better error checking in QaUtils and webProgLstnr methods. Not part of the build.

git-svn-id: svn://10.0.0.236/trunk@132552 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
depstein%netscape.com
2002-10-26 01:49:44 +00:00
parent 8f5f8e39bb
commit c9b175b080
2 changed files with 20 additions and 13 deletions

View File

@@ -253,17 +253,10 @@ NS_IMETHODIMP CBrowserImpl::OnLocationChange(nsIWebProgress* aWebProgress,
QAOutput("Entering nsIWebProgLstnr::OnLocationChange().");
nsresult rv;
nsCAutoString uriString;
rv = location->GetSpec(uriString);
if (NS_FAILED(rv))
QAOutput("Bad result for GetSpec().");
else
QAOutput("Good result for GetSpec().");
FormatAndPrintOutput("OnLocationChange(): The location url = ", uriString, 1);
// test nsIURI parameter
GetTheUri(location, 1);
// RequestName(aRequest, stringMsg); // because of crash bug bugzilla 86521
RequestName(aRequest, stringMsg);
PRBool isSubFrameLoad = PR_FALSE; // Is this a subframe load
if (aWebProgress) {