jooking / closure-library

Automatically exported from code.google.com/p/closure-library
Apache License 2.0
0 stars 1 forks source link

goog.ui.media.FlashObject breaks in IE11 #630

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create and render an instance of goog.ui.media.FlashObject
2. Test on IE 11

What is the expected output? What do you see instead?
Flash movie should be rendered, but nothing happens.

IE 11 appears to have switched to the Gecko/Webkit style of using an embed tag 
for flash content rather than the object tag used by previous versions of IE.  
I was able to work around the issue by adding the following check to my code 
before the first call to .render():
  if (goog.userAgent.isDocumentModeOrHigher(11)) {
    goog.ui.media.FlashObject.IE_HTML_ = goog.ui.media.FlashObject.FF_HTML_;
    goog.ui.media.FlashObject.IE_WMODE_PARAMS_ = goog.ui.media.FlashObject.FF_WMODE_PARAMS_;
  }

Presumably this check should be incorporated in lines 559 and 562 of 
/closure/goog/ui/media/flashobject.js 

Original issue reported on code.google.com by andrew.c...@period7.com on 17 Mar 2014 at 10:41