Do not fire pending callbacks on disconnected performance observer

This commit is contained in:
Fernando Jiménez Moreno 2018-01-15 09:42:31 +01:00
parent eb1634b56b
commit d600f246f4
2 changed files with 0 additions and 19 deletions

View file

@ -184,14 +184,6 @@ impl Performance {
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);
}

View file

@ -1,11 +0,0 @@
[po-disconnect.any.html]
type: testharness
[An observer disconnected after a mark must not have its callback invoked]
expected: FAIL
[po-disconnect.any.worker.html]
type: testharness
[An observer disconnected after a mark must not have its callback invoked]
expected: FAIL