diff --git a/testing/talos/talos/tests/devtools/addon/content/damp.js b/testing/talos/talos/tests/devtools/addon/content/damp.js index 9c8d97304fb4..16c9ca80e6fe 100644 --- a/testing/talos/talos/tests/devtools/addon/content/damp.js +++ b/testing/talos/talos/tests/devtools/addon/content/damp.js @@ -714,7 +714,7 @@ async _consoleOpenWithCachedMessagesTest() { requests.set(id, false); } - function onTimings(_, id) { + function onPayloadReady(_, id) { requests.set(id, true); maybeResolve(); } @@ -727,12 +727,12 @@ async _consoleOpenWithCachedMessagesTest() { // All requests are done - unsubscribe from events and resolve! window.off(EVENTS.NETWORK_EVENT, onRequest); - window.off(EVENTS.RECEIVED_EVENT_TIMINGS, onTimings); + window.off(EVENTS.PAYLOAD_READY, onPayloadReady); resolve(); } window.on(EVENTS.NETWORK_EVENT, onRequest); - window.on(EVENTS.RECEIVED_EVENT_TIMINGS, onTimings); + window.on(EVENTS.PAYLOAD_READY, onPayloadReady); }); },