bug 151983 patch by bernd.mielke@snafu.de r=paper sr=tor
ASSERTION: imgLoader::LoadImage -- NULL URI pointer: 'aURI' git-svn-id: svn://10.0.0.236/trunk@128754 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
23677f1f3e
commit
281964d562
@ -1990,9 +1990,12 @@ nsImageFrame::RealLoadImage(const nsAString& aSpec, nsIPresContext *aPresContext
|
||||
/* get the URI, convert internal-gopher-stuff if needed */
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
GetURI(aSpec, getter_AddRefs(uri));
|
||||
if (!uri)
|
||||
if (!uri) {
|
||||
if (!realURI)
|
||||
return NS_ERROR_FAILURE;
|
||||
uri = realURI;
|
||||
|
||||
}
|
||||
|
||||
/* set this back to FALSE before we do the real load */
|
||||
mInitialLoadCompleted = PR_FALSE;
|
||||
|
||||
|
||||
@ -1990,9 +1990,12 @@ nsImageFrame::RealLoadImage(const nsAString& aSpec, nsIPresContext *aPresContext
|
||||
/* get the URI, convert internal-gopher-stuff if needed */
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
GetURI(aSpec, getter_AddRefs(uri));
|
||||
if (!uri)
|
||||
if (!uri) {
|
||||
if (!realURI)
|
||||
return NS_ERROR_FAILURE;
|
||||
uri = realURI;
|
||||
|
||||
}
|
||||
|
||||
/* set this back to FALSE before we do the real load */
|
||||
mInitialLoadCompleted = PR_FALSE;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user