JsExtensions working on konq-e3 ???

Pascal Jacquemart <[email protected]>
Newsgroups gmane.comp.kde.devel.konq-e
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.