aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performance.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/performance.rs')
-rw-r--r--components/script/dom/performance.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs
index 8e85543f8e3..7cef2f28010 100644
--- a/components/script/dom/performance.rs
+++ b/components/script/dom/performance.rs
@@ -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);
}