Bug 1307501 - Flash plugin isn't enabled in nightly because this check was using the description instead of the name. r=stupidly obvious draft
authorBenjamin Smedberg <benjamin@smedbergs.us>
Tue, 04 Oct 2016 12:35:34 -0400
changeset 420795 5b0ff7d75c6e74fb536cd8217d2d994881f90bb3
parent 420371 fea5300238497189b0823fe4a1a09154a384ebc7
child 420796 262aab93a193d6e94ce12f1fee9b57e712fda431
push id31296
push userbsmedberg@mozilla.com
push dateTue, 04 Oct 2016 17:40:25 +0000
reviewersstupidly
bugs1307501
milestone52.0a1
Bug 1307501 - Flash plugin isn't enabled in nightly because this check was using the description instead of the name. r=stupidly obvious MozReview-Commit-ID: EJmdQfYhGp9
dom/plugins/base/nsPluginHost.cpp
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -2091,17 +2091,17 @@ nsPluginHost::AddPluginTag(nsPluginTag* 
       }
     }
   }
 }
 
 static bool
 PluginInfoIsFlash(const nsPluginInfo& info)
 {
-  if (strcmp(info.fDescription, "Shockwave Flash") != 0) {
+  if (strcmp(info.fName, "Shockwave Flash") != 0) {
     return false;
   }
   for (uint32_t i = 0; i < info.fVariantCount; ++i) {
     if (info.fMimeTypeArray[i] &&
         (!strcmp(info.fMimeTypeArray[i], "application/x-shockwave-flash") ||
          !strcmp(info.fMimeTypeArray[i], "application/x-shockwave-flash-test"))) {
       return true;
     }