Closed Bug 1137897 Opened 9 years ago Closed 9 years ago

nsPluginTag::GetMimeTypes fails with NS_ERROR_NOT_AVAILABLE if mMimeTypes has no item.

Categories

(Core Graveyard :: Plug-ins, defect)

x86_64
macOS
defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: arai, Unassigned)

References

Details

Attachments

(1 file)

Wacom Pressure Plug-In Ver 2.1.0-1 (/Library/Internet Plug-Ins/WacomNetscape.plugin) has no MIME-Types, and it causes following error:
> NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIPluginTag.getMimeTypes]

it's shown everytime when I open Plugins tab in Add-ons Manager.

Also, about:plugins returns empty page due to the error.
bug 1136379 comment #2
> >+CStringArrayToXPCArray(nsTArray<nsCString> & aArray,
> >+  if (!count) {
> >+    return NS_ERROR_NOT_AVAILABLE;
> 
> That's a behavior change... Maybe it's OK.

Unfortunately, that was not OK :/
Blocks: 1136379
Comment on attachment 8570706 [details] [diff] [review]
Do not throw exception from nsPluginTag::GetMimeTypes if a plug-in has no MIME-Types.

r=me, and thank you!
Attachment #8570706 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/9dcb4e943594
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: