Problems run Java apps behind HTTPS

Koos Vriezen koos.vriezen at xs4all.nl
Sun Feb 23 21:57:00 GMT 2003


On Sun, 23 Feb 2003, George Staikos wrote:

> On Sunday 23 February 2003 14:06, Koos Vriezen wrote:
> >
> > Seems to work in the branch also. although it takes ages to start.
> >
> > Ok, that one think I broke...
>
>   Yeah it must be a recent change.  "ages to start" is quite an
> understatement. :)

Well, I was in a hurry :) Anyway with this it works:

diff -u -3 -p -r1.154 render_frames.cpp
--- rendering/render_frames.cpp 23 Feb 2003 17:15:26 -0000      1.154
+++ rendering/render_frames.cpp 23 Feb 2003 21:48:00 -0000
@@ -613,7 +613,10 @@ void RenderPartObject::updateWidget()
           }
       }
       params.append( QString::fromLatin1("__KHTML__PLUGINEMBED=\"YES\"")
);
-      params.append(
QString::fromLatin1("__KHTML__PLUGINBASEURL=\"%1\"").arg(
part->url().url() ) );
+      if (element()->id() == ID_APPLET)
+          params.append(
QString::fromLatin1("__KHTML__PLUGINBASEURL=\"%1\"").arg(element()->getDocument()->baseURL()));
+      else
+          params.append(
QString::fromLatin1("__KHTML__PLUGINBASEURL=\"%1\"").arg(
part->url().url() ) );
       if (element()->id() != ID_OBJECT) {
           // add all attributes set on the embed object
           HTMLElementImpl *o = static_cast<HTMLElementImpl *>(element());

Ugly applet special case, but it might be that this is a bug in the
object case that shows now. Meaning it should always get the baseurl
from document and not the url from the part.

Koos





More information about the kfm-devel mailing list