Skip to content

Commit

Permalink
Observer receives pending marks before removed
Browse files Browse the repository at this point in the history
  • Loading branch information
pylbrecht committed Sep 8, 2017
1 parent 8868d22 commit 354ed65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
9 changes: 9 additions & 0 deletions components/script/dom/performance.rs
Expand Up @@ -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);
}

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

This file was deleted.

0 comments on commit 354ed65

Please sign in to comment.