Plugins:PluginDirectory/HowPluginDetectionWorks: Difference between revisions

Line 57: Line 57:
description.  But, this version does not always exactly match the  
description.  But, this version does not always exactly match the  
'''fully qualified version number''' of the plugin.  Thus, there can be some
'''fully qualified version number''' of the plugin.  Thus, there can be some
discrepancy or fuzziness in version detection.
discrepancy or imprecision in version detection.


For example, use the '''Tools > Add-ons''' menu in Firefox to open the Add-ons dialog
For example, use the '''Tools > Add-ons''' menu in Firefox to open the Add-ons dialog
and view the Plugins tab. If you have "Shockwave Flash" installed, you may see
and view the Plugins tab. If you have "Shockwave Director" installed, you may see
it reported as version 10.0.45.2.  However, this version is not usually available via
it reported as version 11.5.6.606.  However, this version is not usually available via
<code>navigator.plugins</code>. Instead, client-side detection code has to
<code>navigator.plugins</code>. Instead, client-side detection code has to
inspect the name or description - which lists the version as "10.0 r45".
inspect the name or description - which lists the version as "11.5".


So, suppose that there were two releases of Flash - say, versions 10.0.45.2 and
So, suppose that there were two releases of Flash - say, versions 11.5.6.606 and
10.0.45.6. Now suppose that they both listed "10.0 r45" as the version in the  
11.5.7.235. Now suppose that they both listed "11.5" as the version in the  
description. Since client-side code can't see the real '''fully qualified version number'''
description. Since client-side code can't see the real '''fully qualified version number'''
for either plugin, it can't tell a difference between the two. And, if it can't
for either plugin, it can't tell a difference between the two. And, if it can't
tell a difference, then there's no way to decide whether an upgrade is advisable.
tell a difference, then there's no way to decide whether an upgrade is advisable.
In practice, the Adobe Flash plugin in particular tends to update that version in
the description between siginificant updates - but not all plugins do.  So, plugin
version detection can be problematic and imprecise.


And, what's worse: Some plugins don't include a version number at all, neither in the the name nor description. (eg. Adobe Acrobat Reader has often presented this difficulty.) In this case, there's not much we can do besides shrug
And, what's worse: Some plugins don't include a version number at all, neither in the the name nor description. (eg. Adobe Acrobat Reader has often presented this difficulty.) In this case, there's not much we can do besides shrug
Confirmed users
920

edits