NPAPI Plugin doesn't work well on Chrome

194 Views Asked by At

I tried both npapi and firebreath, but all of them only work well on Firefox, and easily stuck on Chrome . the function I wrote in plugin is the simplist "return 0;". i processed the Xemd case.

NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value)

{
  ...
  switch (variable) {

  case NPPVpluginNeedsXEmbed:
    *((BOOL*)value) = TRUE;
...
}
2

There are 2 best solutions below

1
jin On BEST ANSWER

Problem solved when I tried with chrome version 22. Higher version may also work. It's not easy to find such an old version ,I'm afraid my plugin will never be used.-_-||

2
taxilian On

I'm not sure what versions you are using; Chrome discontinued support for NPAPI plugins (supported by FireBreath 1) in 2014; Firefox discontinued support for NPAPI plugins in Firefox 52, though I believe there was a LTS version of firefox 52 which continued to support them for another year and a half (which is likely over by now).

In short, NPAPI is pretty much dead -- the last holdout in generally used browsers is Safari and it's going away with the release of macOS Mojave.

There is a way to write a firebreath 2 plugin and make it work via native messaging but it's a bit of a complicated process and it's not super well documented; you can find information on the firebreath-dev google group and ask clarifying questions there.