зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1158264 - Send an observer service event when a service worker intercept a request. r=bkelly
This commit is contained in:
Родитель
f6bfce457c
Коммит
c7c2eba05c
|
@ -209,6 +209,12 @@ public:
|
|||
|
||||
rv = mChannel->FinishSynthesizedResponse(mResponseURLSpec);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to finish synthesized response");
|
||||
|
||||
nsCOMPtr<nsIObserverService> obsService = services::GetObserverService();
|
||||
if (obsService) {
|
||||
obsService->NotifyObservers(underlyingChannel, "service-worker-synthesized-response", nullptr);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче