mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
fix crash on quickfill/safefill when not connected to internet
This commit is contained in:
parent
7504cb1728
commit
90ff4df193
@ -1958,7 +1958,10 @@ wallet_InitializeCurrentURL(nsIDocument * doc) {
|
||||
#else
|
||||
const char* host;
|
||||
#endif
|
||||
url->GetHost(&host);
|
||||
nsresult rv = url->GetHost(&host);
|
||||
if (NS_FAILED(rv)) {
|
||||
return;
|
||||
}
|
||||
nsAutoString urlName = nsAutoString(host);
|
||||
#ifdef NECKO
|
||||
nsCRT::free(host);
|
||||
|
Loading…
Reference in New Issue
Block a user