mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1114554 - Patch 8 - Support waitUntil() on notificationclick event. r=baku
This was originally a part of Bug 1160527, separated due to changes in order of landing the patches.
This commit is contained in:
parent
c0a2d1d0b6
commit
4215e2e637
@ -2357,7 +2357,14 @@ public:
|
||||
}
|
||||
|
||||
event->SetTrusted(true);
|
||||
target->DispatchDOMEvent(nullptr, event, nullptr, nullptr);
|
||||
nsRefPtr<Promise> waitUntilPromise =
|
||||
DispatchExtendableEventOnWorkerScope(aCx, aWorkerPrivate->GlobalScope(), event);
|
||||
|
||||
if (waitUntilPromise) {
|
||||
nsRefPtr<KeepAliveHandler> handler = new KeepAliveHandler(mServiceWorker);
|
||||
waitUntilPromise->AppendNativeHandler(handler);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user