mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Do not fire pending callbacks on disconnected performance observer
This commit is contained in:
parent
eb1634b56b
commit
d600f246f4
2 changed files with 0 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue