WebKit-based browsers like Chromium and Epiphany may insert extra junk at the end of NPStrings, so we cannot depend on the strlen matching. https://bugzilla.gnome.org/show_bug.cgi?id=663823
This makes the plugin work under WebKit-based browsers such as Chromium and Epiphany. See http://code.google.com/p/chromium/issues/detail?id=38229 and WindowedCreatePlugin() in http://src.chromium.org/viewvc/chrome/trunk/src/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc?revision=86823&content-type=text%2Fplain for more information. https://bugzilla.gnome.org/show_bug.cgi?id=663823
This is a direct import from http://github.com/magcius/sweettooth-plugin . All the source code is the same, as it had no branding. Everything else is just renaming and modifying the "build system" to work with gnome-shell's existing one. https://bugzilla.gnome.org/show_bug.cgi?id=658070