Friday, February 5, 2010

Better plugin version detection thanks to Firefox 3.6

Up until a few days ago, in order to find and parse plugin versions in JavaScript one had to write a pretty complex function that also involved a lot of guesswork, as you can see in our source code.

As of Firefox 3.6, however, websites can access the plugin version in the simplest way possible:
navigator.plugins[i].version
This means SecBrowsing can use this version when available and correctly detect plugins we cannot detect now correctly, such as

  • Adobe Reader
  • Shockwave for Director
  • RealPlayer 
We can also try to get this functionality into Google Chrome, so SecBrowsing can be accurate for Chrome as well. Stay tuned.