[webkit-qt] why the NPAPI cannot work with QtWebKit??

Girish Ramakrishnan girish at forwardbias.in
Thu Jan 28 23:02:46 PST 2010


Hi,

michael young wrote:
> the plugin is got from
> mozilla-1.9.2/modules/plugin/sdk/samples/basic/unix/ , it's
> the Basic Demo of NPAPI,
> it's work well in firefox, and google's Chrome, but it cannot work in
> QtWebkit. When I run the Demo test page , I got some infomation from
> terminal, see below.
> 
> ** (<unknown>:3020): DEBUG: NP_Initialize
> ** (<unknown>:3020): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3020): DEBUG: NP_Initialize
> ** (<unknown>:3020): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3020): DEBUG: NP_Initialize
> ** (<unknown>:3020): DEBUG: NP_Initialize succeeded
> ** (<unknown>:3020): DEBUG: NP_Initialize
> ** (<unknown>:3020): DEBUG: NP_Initialize succeeded
> 
> So I think the plugin should be working, but in the browser of QtWebkit ,
> I nerver get the plugin window, which I can see in the FireFox or Chrome.
> So I guess that there should do some change for the npapi plugin of QtWebKit,
> but I don't know how,
> the Demo's resource is from:
> http://mxr.mozilla.org/seamonkey/source/modules/plugin/tools/sdk/samples/basic/unix/

The NPAPI is very toolkit dependent. It looks like the sample uses Xt.
Qt's event loop and Xt's don't mix. If you make the plugin gtk based, it
will work.

Girish


More information about the webkit-qt mailing list