Bug 584615 - Fix for video controls direction test failure. r=kinetik a=blocking2.0

This commit is contained in:
Matthew Gregan
2010-09-14 16:53:02 +12:00
parent f59726b0d8
commit 806a4ac39e

View File

@@ -21,7 +21,9 @@ RemoteCanvas.prototype.load = function(callback) {
iframe.addEventListener("load", function() {
var m = iframe.contentDocument.getElementById("av");
m.addEventListener("progress", function(aEvent) {
if (aEvent.loaded == aEvent.total) {
var v = aEvent.target;
var b = v.buffered;
if (b.length == 1 && b.end(0) == v.duration) {
m.removeEventListener("progress", arguments.callee, false);
setTimeout(function() {
me.remotePageLoaded(callback);