What steps will reproduce the problem?
1. I'm not sure, but sometimes, Firefox stops being able to get through
swfobject.js at this line "if (typeof t.GetVariable != UNDEF) {"
What is the expected output?
The SWF loads
What do you see instead?
Javascript error in swfobject.js
Error: uncaught exception: [Exception... "" nsresult: "0x805e000b
(<unknown>)" location: "JS frame ::
http://localhost:8080/xxxxx/js/swfobject.js :: anonymous :: line 4" data: no]
What version of the product are you using? On what operating system?
2.2 on Firefox in Vista
This change causes the problem to go away, but probably doesn't fix it.
It's also ugly. The "if (counter" should be its own function. At least the
site always works now :)
Tested in IE8 and FF 3.5.
var done = false;
try {
if (typeof t.GetVariable != UNDEF) {
var d = t.GetVariable("$version");
if (d) {
d = d.split(" ")[1].split(",");
ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10),
parseInt(d[2], 10)];
}
done = true;
}
}
catch (ex) {
}
if (!done) {
if (counter < 10) {
counter++;
setTimeout(arguments.callee, 10);
return;
}
}
Original issue reported on code.google.com by mrsqueez...@gmail.com on 15 Sep 2009 at 3:57
Original issue reported on code.google.com by
mrsqueez...@gmail.com
on 15 Sep 2009 at 3:57