Bug 1574218 - Fix broken VRManagerChild::NotifyPresentationGenerationChanged event. r=kip

Fix broken VRManagerChild::NotifyPresentationGenerationChanged event.

Differential Revision: https://phabricator.services.mozilla.com/D42164

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Imanol Fernandez 2019-08-15 23:18:41 +00:00
parent b634df9005
commit efb7b0fed5

View File

@ -456,7 +456,7 @@ void VRManagerChild::FireDOMVRDisplayConnectEventsForLoadInternal(
void VRManagerChild::NotifyPresentationGenerationChangedInternal(
uint32_t aDisplayID) {
nsTArray<RefPtr<VRManagerEventObserver>> listeners;
nsTArray<RefPtr<VRManagerEventObserver>> listeners(mListeners);
for (auto& listener : listeners) {
listener->NotifyPresentationGenerationChanged(aDisplayID);
}