Backout of changeset 01e3238d3ddd because it didn't help with the orange

This commit is contained in:
Ehsan Akhgari 2009-11-16 20:12:31 -05:00
parent e147c900f4
commit f994a3ef93

View File

@ -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);