Bug 803159 - Fix type error in plugin code. r=bz a=lsblakk
authorJohn Schoenick <jschoenick@mozilla.com>
Fri, 19 Oct 2012 13:49:28 -0700
changeset 116462 e7cd4fa60ceb6c84b34d7ef5adbd25f495793e9e
parent 116461 c3b3811b06f5aa1e831fbd3295ff079210805b3f
child 116463 52a2c63aeeaaeaa86b242bad4c811c162dc5358a
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, lsblakk
bugs803159
milestone18.0a2
Bug 803159 - Fix type error in plugin code. r=bz a=lsblakk
content/base/src/nsObjectLoadingContent.cpp
--- a/content/base/src/nsObjectLoadingContent.cpp
+++ b/content/base/src/nsObjectLoadingContent.cpp
@@ -2092,17 +2092,17 @@ nsObjectLoadingContent::GetTypeOfContent
   uint32_t caps = GetCapabilities();
 
   if ((caps & eSupportImages) && IsSupportedImage(aMIMEType)) {
     return eType_Image;
   }
 
   // SVGs load as documents, but are their own capability
   bool isSVG = aMIMEType.LowerCaseEqualsLiteral("image/svg+xml");
-  bool supportType = isSVG ? eSupportSVG : eSupportDocuments;
+  Capabilities supportType = isSVG ? eSupportSVG : eSupportDocuments;
   if ((caps & supportType) && IsSupportedDocument(aMIMEType)) {
     return eType_Document;
   }
 
   if ((caps & eSupportPlugins) && NS_SUCCEEDED(IsPluginEnabledForType(aMIMEType))) {
     return eType_Plugin;
   }