From 7bc5fb0eca7ccf15e3fbaa69d527e53297f1d536 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 9 Nov 2016 08:58:18 -0800 Subject: [PATCH] Specify useCapture argument in addEventListener calls (#215) --- testharness.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/testharness.js b/testharness.js index 98d1b836cba77f..a6e7913e7bcb87 100644 --- a/testharness.js +++ b/testharness.js @@ -389,7 +389,7 @@ policies and contribution forms [3]. self.addEventListener("connect", function(message_event) { this_obj._add_message_port(message_event.source); - }); + }, false); } SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype); @@ -430,7 +430,7 @@ policies and contribution forms [3]. this_obj._add_message_port(event.source); } } - }); + }, false); // The oninstall event is received after the service worker script and // all imported scripts have been fetched and executed. It's the @@ -586,7 +586,7 @@ policies and contribution forms [3]. }); for (var i = 0; i < eventTypes.length; i++) { - watchedNode.addEventListener(eventTypes[i], eventHandler); + watchedNode.addEventListener(eventTypes[i], eventHandler, false); } /** @@ -611,7 +611,7 @@ policies and contribution forms [3]. function stop_watching() { for (var i = 0; i < eventTypes.length; i++) { - watchedNode.removeEventListener(eventTypes[i], eventHandler); + watchedNode.removeEventListener(eventTypes[i], eventHandler, false); } }; @@ -2686,8 +2686,8 @@ policies and contribution forms [3]. } }; - addEventListener("error", error_handler); - addEventListener("unhandledrejection", function(e){ error_handler(e.reason); }); + addEventListener("error", error_handler, false); + addEventListener("unhandledrejection", function(e){ error_handler(e.reason); }, false); test_environment.on_tests_ready();