mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
fix bug 48241, crash when visiting url
This commit is contained in:
parent
84b5fd67e3
commit
a204ee0d93
@ -1708,7 +1708,7 @@ PRBool il_PermitLoad(const char * image_url, nsIImageRequestObserver * aObserver
|
||||
/* extract host */
|
||||
char * host;
|
||||
rv = uri->GetHost(&host);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (NS_FAILED(rv) || !host) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user