Observer receives pending marks before removed

This commit is contained in:
P. Albrecht 2017-09-04 18:00:29 +02:00
parent 8868d2223d
commit 354ed65c21
2 changed files with 9 additions and 13 deletions

View file

@ -182,6 +182,15 @@ impl Performance {
Some(p) => p,
None => return,
};
if self.pending_notification_observers_task.get() {
if let Some(o) = observers.iter().nth(index) {
DOMPerformanceObserver::new(&self.global(),
o.observer.callback(),
o.observer.entries()).notify();
}
}
observers.remove(index);
}