void SpeechRecognition::ResetAndEnd() { Reset(); DispatchTrustedEvent(NS_LITERAL_STRING("end")); }
void MediaSource::DispatchSimpleEvent(const char* aName) { MSE_DEBUG("%p Dispatching event %s to MediaSource", this, aName); DispatchTrustedEvent(NS_ConvertUTF8toUTF16(aName)); }
void ServiceWorkerContainer::ControllerChanged(ErrorResult& aRv) { mControllerWorker = nullptr; aRv = DispatchTrustedEvent(NS_LITERAL_STRING("controllerchange")); }