Question

I know its possible to integrate NPAPI plugins with QtWebKit as its been supported since the release of Qt 4.5.

My question is, should I go and design my plugin according to the Mozilla/Gecko documentaion -Which is probably the only available/reliable documentation for NPAPI beside some really old book called "Programming Netscape Plug-ins"- or does Qt handle NPAPI plugins in a different way?

Was it helpful?

Solution

Going with Mozillas and other documentation like colonelpanics tutorial will be fine. You might also want to take a look at FireBreaths source because we already solved some common issues there.

QtWebKit actually wraps WebKit and i don't recall there being any real differences between Mozilla and WebKit. Of course you should handle possible differences in supported browser-properties etc., but you should do that in any NPAPI plugin anyway.

The added benefit is that you won't have too much problems using the same plugin in other enviroments then QtWebKit.

OTHER TIPS

I think, Mozilla/Gecko documentation (general NPAPI and developer documentation) is the most recent and reliable version of documentation on NPAPI.

There is currently interest in making npapi documentation more meaningful since the new PPAPI project is being emerged.

This link should be helpful if you consider developing plugins for webkit: https://svn.webkit.org/wiki/QtWebKitPlugins

And be sure to use the most recent npapi-headers.

You could also subscribe to the corresponding mailing list

If you develop your plugin with QtWebKit, it won't be available neither for FireFox (which uses Gecko instead of webkit), nor for IE obviously...

If you want something more portable take a look to another QT sample qtbrowserplugin. It is available until 4.5, but still works with current browsers. Moreover, it is quite simple to update it if necessary.

Either take a look at FireBreath (as georg-fritzsche mentions)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top