Comment 46 for bug 128062

Revision history for this message
In , Philip-chee (philip-chee) wrote :

Regression or new bug?

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060426 Minefield/3.0a1

Error: Error calling method on NPObject!
Source file: chrome://flashblock/content/flashblock.xml
Line: 41

// Substitute the animation with a placeholder
function flashblockShowPlaceholder() {
 // Just in case the object has been moved away from under our feet during
 // the timeout, re-assign the parent node. See bug 13680
 parent = current.parentNode;
 parent.insertBefore(placeholder, current);
 if(placeholder.isStandalone) {
  placeholder.flashblock = "frame";
  current.StopPlay(); <-- Problem occurs **********
  current.LoadMovie(0, "");
  current.prevWidth = current.width; <-- This is OK.
  current.prevHeight = current.height;
  current.width = current.height = 0;
 } else {
  placeholder.flashblock = "normal";
  parent.removeChild(current);
 }
}