I'm working on a plugin that runs some javascript using the
NPN_Evaluate function. It works great in mozilla, but when i tried to
run it in opera it just freezes somewhere in the NPN_Evaluate
function. I reall have no idea what might be causing this. The plugin
is compiled against the 1.7.12 gecko-sdk (yes, I really have to use
such an old version).
Has anyone else encountered this? Has anyone found a way to fix it?
Andreas Bruse
Could you file a bug report, including the plugin and a testcase? I asked
the plugin developer who said 'it should work'.
--
Rijk van Geijtenbeek
Opera Software ASA, Documentation & QA
Tweak: http://my.opera.com/Rijk/blog/
"The most common way to get usability wrong is to listen to what users
say rather than actually watching what they do." -- J.Nielsen
Sorry, I can not release the real plugin, but if I have time I'll try
to create a smaller plugin based on some sample code that runs into
the same problems. The only reason for me to call javascript from the
plugin in the first place is really to solve an annoying problem with
an ugly hack.
But then again, it might just be me who's doing something stupid. Here
are the related lines of code:
NPObject* sWindowObj;
NPN_GetValue(mNpp, NPNVWindowNPObject, &sWindowObj);
NPString str;
str.utf8characters = "alert('arr');";
str.utf8length = strlen(str.utf8characters);
NPN_Evaluate(mNpp, sWindowObj, &str, NULL);
If something obvious seems wrong, please let me know. In the mean
time, maybe I'll just try to fix the underlying problem which requires
me to do this in the first place. :)
Andreas Bruse