diff --git a/toolkit/content/tests/widgets/videocontrols_direction_test.js b/toolkit/content/tests/widgets/videocontrols_direction_test.js index f64cac48888..54f47325a95 100644 --- a/toolkit/content/tests/widgets/videocontrols_direction_test.js +++ b/toolkit/content/tests/widgets/videocontrols_direction_test.js @@ -20,10 +20,10 @@ RemoteCanvas.prototype.load = function(callback) { var me = this; iframe.addEventListener("load", function() { var m = iframe.contentDocument.getElementById("av"); - m.addEventListener("progress", function(aEvent) { + m.addEventListener("suspend", function(aEvent) { if (m.readyState == m.HAVE_ENOUGH_DATA && aEvent.loaded == aEvent.total) { - m.removeEventListener("progress", arguments.callee, false); + m.removeEventListener("suspend", arguments.callee, false); setTimeout(function() { me.remotePageLoaded(callback); }, 0);