Can I download the NPAPI plugin in Safari (Mac OS X)?

I have code that resides in a browser and wrote C ++ plugins for IE (COM / ActiveX) and firefox (NPAPI).

Now I need to get this code to work on Mac OS X. I found the input on the apple website, but it is written in Objective C.

I also read about SIMBL , but it seems to only deal with Objective-C code, right?

So here are my questions:

  • Is it possible to encode a clean C ++ plugin for Safari (reusing my Firefox NPAPI plugin would be great)?

  • If this is not possible, is there a way to use the C object plugin as a loader for some C ++ code?

I am a complete noob on Mac OS and don’t even have a Mac Box to get confused, so a very general question.

thanks

+3
source share
1 answer

The NPAPI plugin mechanism is the standard mechanism for browser plugins on MacOS (and Linux - everything except IE) - if you use NPAPI, your plugin will work in Safari, Firefox and Opera. They will also work on both 32 and 64-bit Safari. Assuming your code makes no assumptions about which browser it runs in the same NPAPI code, it should work in all browsers (I saw "NPAPI" plugins that dynamically enable XUL-related functions in the blind belief that NPAPI is only used Firefox, despite this, is the standard plugin format for more or less every browser that does not use IE).

"", SIMBL API- MacOS, ( ) Safari - ( , , ) Safari , ( " " Leopard - , logitech APE, - SIMBL).

+9

Source: https://habr.com/ru/post/1717808/


All Articles