JsExtensions working on konq-e3 ???

Pascal Jacquemart p99_pascal at yahoo.fr
Fri Apr 13 13:57:57 CEST 2007


Hi,

Finally I fixed my problem concerning JsExtensions use
on konqueror-embedded 3

In fact, this kind of Extensions can register but the
probeJsExtension() function is never called.

I paste the following code in /khtml/khtml_part.cpp at
the the end of the KHTMLPart::begin() function

#if defined(ENABLE_JS_HOSTEXTEND)
  if ( jScriptEnabled() ) {
     KJS::probeJsExtension(
        jScript()->interpreter()->globalExec(), 
	this, 
        url, 
        args.serviceType,
        KJS::Window::retrieveWindow(this));
  }
#endif 

It seems to work as I can now use JsDebug addon, and
call the DebugOut function in JavaScript.

But I must recognize that I have no idea why
JsExtensions had been removed and if this change may
be a security issue? Can anyone have a look about it?

   Thanks,                        Pascal



      
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com


More information about the konq-e mailing list