diff --git a/dom/plugins/base/nsPluginTags.cpp b/dom/plugins/base/nsPluginTags.cpp index ba3299c078e5..448950a8d582 100644 --- a/dom/plugins/base/nsPluginTags.cpp +++ b/dom/plugins/base/nsPluginTags.cpp @@ -230,6 +230,7 @@ nsPluginTag::~nsPluginTag() NS_IMPL_ISUPPORTS1(nsPluginTag, nsIPluginTag) +#if !defined(XP_WIN) && !defined(XP_MACOSX) static nsresult ConvertToUTF8(nsIUnicodeDecoder *aUnicodeDecoder, nsAFlatCString& aString) { @@ -249,6 +250,7 @@ static nsresult ConvertToUTF8(nsIUnicodeDecoder *aUnicodeDecoder, return NS_OK; } +#endif nsresult nsPluginTag::EnsureMembersAreUTF8() { @@ -529,10 +531,4 @@ void nsPluginTag::TryUnloadPlugin() // again so the calling code should not be fooled and reload // the library fresh mLibrary = nsnull; - - // Remove mime types added to the category manager - // only if we were made 'active' by setting the host - if (mPluginHost) { - RegisterWithCategoryManager(false, nsPluginTag::ePluginUnregister); - } } diff --git a/dom/plugins/base/nsPluginTags.h b/dom/plugins/base/nsPluginTags.h index f6e4fefce535..df163114dd51 100644 --- a/dom/plugins/base/nsPluginTags.h +++ b/dom/plugins/base/nsPluginTags.h @@ -87,7 +87,7 @@ public: PRInt64 aLastModifiedTime = 0, bool aCanUnload = true, bool aArgsAreUTF8 = false); - ~nsPluginTag(); + virtual ~nsPluginTag(); void SetHost(nsPluginHost * aHost); void TryUnloadPlugin();