Bug 618565 - Don't do flash hack for maemo platform. r=dougt a=approval2.0
authorOleg Romashin <romaxa@gmail.com>
Tue, 04 Jan 2011 17:37:28 +0200
changeset 59840 f09c19a9fff99610398a29229406e1440bd8e830
parent 59839 e55110b28ba56b87383ba4c82cd6f7ee36711b1a
child 59841 a7d7ed0cda707393db783d2733c8ae0ccfa41643
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdougt, approval2
bugs618565
milestone2.0b9pre
Bug 618565 - Don't do flash hack for maemo platform. r=dougt a=approval2.0
dom/plugins/PluginInstanceChild.cpp
--- a/dom/plugins/PluginInstanceChild.cpp
+++ b/dom/plugins/PluginInstanceChild.cpp
@@ -158,26 +158,29 @@ PluginInstanceChild::PluginInstanceChild
 #endif // MOZ_X11 && XP_UNIX && !XP_MACOSX
 #if defined(OS_WIN)
     memset(&mAlphaExtract, 0, sizeof(mAlphaExtract));
 #endif // OS_WIN
 #if defined(OS_WIN)
     InitPopupMenuHook();
 #endif // OS_WIN
 #ifdef MOZ_X11
+    // Maemo flash can render plugin with any provided rectangle and not require this quirk.
+#ifndef MOZ_PLATFORM_MAEMO
     const char *description = NULL;
     mPluginIface->getvalue(GetNPP(), NPPVpluginDescriptionString,
                            &description);
     if (description) {
         NS_NAMED_LITERAL_CSTRING(flash10Head, "Shockwave Flash 10.");
         if (StringBeginsWith(nsDependentCString(description), flash10Head)) {
           PluginModuleChild::current()->AddQuirk(PluginModuleChild::QUIRK_FLASH_EXPOSE_COORD_TRANSLATION);
         }
     }
 #endif
+#endif
 }
 
 PluginInstanceChild::~PluginInstanceChild()
 {
 #if defined(OS_WIN)
     NS_ASSERTION(!mPluginWindowHWND, "Destroying PluginInstanceChild without NPP_Destroy?");
 #endif
 #if defined(OS_MACOSX)