Bug 1462879 - PerformanceNavigationTiming must be notified correctly - part 3 - Update the channel properties before notify, r=valentin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user