mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 885666 - crash in mozilla::places::::NotifyPlaceInfoCallback::Run. r=mak
This commit is contained in:
parent
0e4e36a4fc
commit
93f026ad8f
@ -873,9 +873,12 @@ public:
|
||||
if (!known) {
|
||||
nsresult rv = mHistory->FetchPageInfo(place, &known);
|
||||
if (NS_FAILED(rv)) {
|
||||
nsCOMPtr<nsIRunnable> event =
|
||||
new NotifyPlaceInfoCallback(mCallback, place, true, rv);
|
||||
return NS_DispatchToMainThread(event);
|
||||
if (mCallback) {
|
||||
nsCOMPtr<nsIRunnable> event =
|
||||
new NotifyPlaceInfoCallback(mCallback, place, true, rv);
|
||||
return NS_DispatchToMainThread(event);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user