Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 2 - getEntryByName, r=valentin

This commit is contained in:
Andrea Marchesini 2018-08-04 08:54:58 +02:00
Родитель 8ab9f07dd8
Коммит dfba5ad9b9
3 изменённых файлов: 5 добавлений и 12 удалений

Просмотреть файл

@ -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