Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 3 - Update the channel properties before notify, r=valentin

This commit is contained in:
Andrea Marchesini
2018-08-04 08:54:58 +02:00
parent b769c15369
commit 31fca2e981
10 changed files with 30 additions and 21 deletions

View File

@@ -337,9 +337,17 @@ PerformanceMainThread::CreateNavigationTimingEntry()
void
PerformanceMainThread::QueueNavigationTimingEntry()
{
if (mDocEntry) {
QueueEntry(mDocEntry);
if (!mDocEntry) {
return;
}
// Let's update some values.
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(mChannel);
if (httpChannel) {
mDocEntry->UpdatePropertiesFromHttpChannel(httpChannel, mChannel);
}
QueueEntry(mDocEntry);
}
void