From d600f246f4fadd63475ea8b3bbe1afec5d4e9ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Mon, 15 Jan 2018 09:42:31 +0100 Subject: [PATCH] Do not fire pending callbacks on disconnected performance observer --- components/script/dom/performance.rs | 8 -------- .../performance-timeline/po-disconnect.any.js.ini | 11 ----------- 2 files changed, 19 deletions(-) delete mode 100644 tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 3ff1d32b5d6..4a9a9672b4e 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -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); } diff --git a/tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini b/tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini deleted file mode 100644 index c8809176a86..00000000000 --- a/tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini +++ /dev/null @@ -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 -