Skip to content

Commit

Permalink
Do not fire pending callbacks on disconnected performance observer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferjm committed Jan 15, 2018
1 parent eb1634b commit d600f24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions components/script/dom/performance.rs
Expand Up @@ -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);
}

Expand Down
11 changes: 0 additions & 11 deletions tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini

This file was deleted.

0 comments on commit d600f24

Please sign in to comment.