зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 2 - getEntryByName, r=valentin
This commit is contained in:
Родитель
8ab9f07dd8
Коммит
dfba5ad9b9
|
@ -394,16 +394,14 @@ PerformanceMainThread::GetEntriesByName(const nsAString& aName,
|
|||
return;
|
||||
}
|
||||
|
||||
if (aName.EqualsLiteral("document")) {
|
||||
aRetval.Clear();
|
||||
Performance::GetEntriesByName(aName, aEntryType, aRetval);
|
||||
|
||||
if (mDocEntry) {
|
||||
aRetval.AppendElement(mDocEntry);
|
||||
}
|
||||
// The navigation entry is the first one. If it exists and the name matches,
|
||||
// let put it in front.
|
||||
if (mDocEntry && mDocEntry->GetName().Equals(aName)) {
|
||||
aRetval.InsertElementAt(0, mDocEntry);
|
||||
return;
|
||||
}
|
||||
|
||||
Performance::GetEntriesByName(aName, aEntryType, aRetval);
|
||||
}
|
||||
|
||||
} // dom namespace
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[nav2_test_instance_accessors.html]
|
||||
expected: TIMEOUT
|
||||
[Performance navigation timing entries are accessible through three different accessors.]
|
||||
expected: TIMEOUT
|
||||
|
Загрузка…
Ссылка в новой задаче