mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1224061: Followup to fix b2g bustage r=me CLOSED TREE
This commit is contained in:
parent
c9773e9cc2
commit
270f5a8d12
@ -1638,8 +1638,7 @@ BluetoothAdapter::DispatchEmptyEvent(const nsAString& aType)
|
||||
{
|
||||
RefPtr<Event> event = NS_NewDOMEvent(this, nullptr, nullptr);
|
||||
|
||||
nsresult rv = event->InitEvent(aType, false, false);
|
||||
NS_ENSURE_SUCCESS_VOID(rv);
|
||||
event->InitEvent(aType, false, false);
|
||||
|
||||
DispatchTrustedEvent(event);
|
||||
}
|
||||
|
@ -90,13 +90,7 @@ SpeakerManager::DispatchSimpleEvent(const nsAString& aStr)
|
||||
}
|
||||
|
||||
RefPtr<Event> event = NS_NewDOMEvent(this, nullptr, nullptr);
|
||||
rv = event->InitEvent(aStr, false, false);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Failed to init the error event!!!");
|
||||
return;
|
||||
}
|
||||
|
||||
event->InitEvent(aStr, false, false);
|
||||
event->SetTrusted(true);
|
||||
|
||||
rv = DispatchDOMEvent(nullptr, event, nullptr, nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user