mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #2282 - Align the Performance Observer navigation and resource with the spec. This now passes the conformance tests. https://bugzilla.mozilla.org/show_bug.cgi?id=1425458 Resource timing entries Workers - part 2 - PerformanceTimingData. https://bugzilla.mozilla.org/show_bug.cgi?id=1462605 PerformanceNavigationTiming.name must be the value of the address of the current document. https://bugzilla.mozilla.org/show_bug.cgi?id=1462883 Update PerformanceTimingData::mReportCrossOriginRedirect in SetPropertiesFromHttpChannel. https://bugzilla.mozilla.org/show_bug.cgi?id=1462879 PerformanceNavigationTiming must be notified correctly - part 1 - notify.
This commit is contained in:
parent
e65b46ba0f
commit
373fb9ae07
14 changed files with 484 additions and 343 deletions
|
|
@ -24,55 +24,55 @@ PerformanceNavigationTiming::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aG
|
|||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::UnloadEventStart() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetUnloadEventStartHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetUnloadEventStartHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::UnloadEventEnd() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetUnloadEventEndHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetUnloadEventEndHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomInteractive() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomInteractiveHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetDomInteractiveHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomContentLoadedEventStart() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomContentLoadedEventStartHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetDomContentLoadedEventStartHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomContentLoadedEventEnd() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomContentLoadedEventEndHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetDomContentLoadedEventEndHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::DomComplete() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetDomCompleteHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetDomCompleteHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::LoadEventStart() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetLoadEventStartHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetLoadEventStartHighRes();
|
||||
}
|
||||
|
||||
DOMHighResTimeStamp
|
||||
PerformanceNavigationTiming::LoadEventEnd() const
|
||||
{
|
||||
return TimerClamping::ReduceMsTimeValue(mTiming->GetDOMTiming()->GetLoadEventEndHighRes());
|
||||
return mPerformance->GetDOMTiming()->GetLoadEventEndHighRes();
|
||||
}
|
||||
|
||||
NavigationType
|
||||
PerformanceNavigationTiming::Type() const
|
||||
{
|
||||
switch(mTiming->GetDOMTiming()->GetType()) {
|
||||
switch(mPerformance->GetDOMTiming()->GetType()) {
|
||||
case nsDOMNavigationTiming::TYPE_NAVIGATE:
|
||||
return NavigationType::Navigate;
|
||||
break;
|
||||
|
|
@ -92,5 +92,5 @@ PerformanceNavigationTiming::Type() const
|
|||
uint16_t
|
||||
PerformanceNavigationTiming::RedirectCount() const
|
||||
{
|
||||
return mTiming->GetRedirectCount();
|
||||
return mTimingData->GetRedirectCount();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue