mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 20:17:33 +09:00
moebius#158: The Performance Resource Timing (added support for "workerStart")
https://github.com/MoonchildProductions/moebius/pull/158
This commit is contained in:
parent
6a97ee9379
commit
6885700c5b
26 changed files with 746 additions and 70 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "nsINetworkInterceptController.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsITimedChannel.h"
|
||||
#include "nsIUnicodeDecoder.h"
|
||||
#include "nsIUnicodeEncoder.h"
|
||||
#include "nsContentPolicyUtils.h"
|
||||
|
|
@ -108,6 +109,12 @@ NS_IMETHODIMP
|
|||
CancelChannelRunnable::Run()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
// TODO: When bug 1204254 is implemented, this time marker should be moved to
|
||||
// the point where the body of the network request is complete.
|
||||
mChannel->SetHandleFetchEventEnd(TimeStamp::Now());
|
||||
mChannel->SaveTimeStampsToUnderlyingChannel();
|
||||
|
||||
mChannel->Cancel(mStatus);
|
||||
mRegistration->MaybeScheduleUpdate();
|
||||
return NS_OK;
|
||||
|
|
@ -230,6 +237,9 @@ public:
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
mChannel->SetHandleFetchEventEnd(TimeStamp::Now());
|
||||
mChannel->SaveTimeStampsToUnderlyingChannel();
|
||||
|
||||
nsCOMPtr<nsIObserverService> obsService = services::GetObserverService();
|
||||
if (obsService) {
|
||||
obsService->NotifyObservers(underlyingChannel, "service-worker-synthesized-response", nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue