mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
bug 151983 patch by bernd.mielke@snafu.de r=paper sr=tor
ASSERTION: imgLoader::LoadImage -- NULL URI pointer: 'aURI'
This commit is contained in:
parent
cb32b91b45
commit
15fb039188
@ -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…
Reference in New Issue
Block a user