From 489c37ab4fb033a2f93f20f91a3ba623894ca53a Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Wed, 4 Apr 2018 11:25:43 -0700 Subject: [PATCH] Bug 1450358 P8 Test that SharedWorker does not leak windows through its event listener. r=baku --- dom/workers/test/mochitest.ini | 2 + ...est_sharedworker_event_listener_leaks.html | 52 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 dom/workers/test/test_sharedworker_event_listener_leaks.html diff --git a/dom/workers/test/mochitest.ini b/dom/workers/test/mochitest.ini index 178424afa98f..087d774a2908 100644 --- a/dom/workers/test/mochitest.ini +++ b/dom/workers/test/mochitest.ini @@ -103,6 +103,7 @@ support-files = !/dom/xhr/tests/subdir/relativeLoad_sub_worker.js !/dom/xhr/tests/subdir/relativeLoad_sub_worker2.js !/dom/xhr/tests/subdir/relativeLoad_sub_import.js + !/dom/events/test/event_leak_utils.js [test_404.html] [test_atob.html] @@ -196,3 +197,4 @@ scheme=https [test_subworkers_suspended.html] skip-if = toolkit == 'android' #bug 1366501 [test_bug1317725.html] +[test_sharedworker_event_listener_leaks.html] diff --git a/dom/workers/test/test_sharedworker_event_listener_leaks.html b/dom/workers/test/test_sharedworker_event_listener_leaks.html new file mode 100644 index 000000000000..ea070fc4c578 --- /dev/null +++ b/dom/workers/test/test_sharedworker_event_listener_leaks.html @@ -0,0 +1,52 @@ + + + + + Bug 1450358 - Test SharedWorker event listener leak conditions + + + + + + + + + +