diff --git a/dom/plugins/base/nsPluginTags.cpp b/dom/plugins/base/nsPluginTags.cpp index e8c39857b54..71e549c1968 100644 --- a/dom/plugins/base/nsPluginTags.cpp +++ b/dom/plugins/base/nsPluginTags.cpp @@ -419,7 +419,7 @@ nsPluginTag::GetMimeTypes(uint32_t* aCount, char16_t*** aResults) *aCount = count; for (uint32_t i = 0; i < count; i++) { - (*aResults)[i] = ToNewUnicode(mMimeTypes[i]); + (*aResults)[i] = ToNewUnicode(NS_ConvertUTF8toUTF16(mMimeTypes[i])); } return NS_OK; @@ -436,7 +436,7 @@ nsPluginTag::GetMimeDescriptions(uint32_t* aCount, char16_t*** aResults) *aCount = count; for (uint32_t i = 0; i < count; i++) { - (*aResults)[i] = ToNewUnicode(mMimeDescriptions[i]); + (*aResults)[i] = ToNewUnicode(NS_ConvertUTF8toUTF16(mMimeDescriptions[i])); } return NS_OK; @@ -453,7 +453,7 @@ nsPluginTag::GetExtensions(uint32_t* aCount, char16_t*** aResults) *aCount = count; for (uint32_t i = 0; i < count; i++) { - (*aResults)[i] = ToNewUnicode(mExtensions[i]); + (*aResults)[i] = ToNewUnicode(NS_ConvertUTF8toUTF16(mExtensions[i])); } return NS_OK; diff --git a/dom/plugins/test/mochitest/mochitest.ini b/dom/plugins/test/mochitest/mochitest.ini index c620694236f..a96f663cf20 100644 --- a/dom/plugins/test/mochitest/mochitest.ini +++ b/dom/plugins/test/mochitest/mochitest.ini @@ -39,6 +39,7 @@ support-files = [test_bug863792.html] [test_bug967694.html] [test_bug985859.html] +[test_bug986930.html] [test_cocoa_focus.html] skip-if = toolkit != "cocoa" support-files = cocoa_focus.html diff --git a/dom/plugins/test/mochitest/test_bug986930.html b/dom/plugins/test/mochitest/test_bug986930.html new file mode 100644 index 00000000000..620f93913fc --- /dev/null +++ b/dom/plugins/test/mochitest/test_bug986930.html @@ -0,0 +1,20 @@ + + +
+ +