make makeNicePluginName accessible from more places

NEW
Unassigned

Status

()

Firefox
General
5 years ago
5 years ago

People

(Reporter: keeler, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

makeNicePluginName (in browser-plugins.js) is a utility function that strips off unnecessary version numbers and other confusing things form plugin names (for example, it also changes "Shockwave Flash" to the more recognizable "Adobe Flash").
Previously, only browser-plugins.js needed this function, but with the changes coming in bug 775857 and bug 821892, it needs to be more widely available. One option is to put it into an idl (e.g. nsIPluginHost.idl) so any privileged javascript can call it. This would certainly work, but that would mean implementing it in C++. Maybe there's a more lightweight solution?
You need to log in before you can comment on or make changes to this bug.