From kfm-devel Sun Dec 01 16:00:33 2002 From: Koos Vriezen Date: Sun, 01 Dec 2002 16:00:33 +0000 To: kfm-devel Subject: Url of an about:blank document X-MARC-Message: https://marc.info/?l=kfm-devel&m=103875843801569 Hi, The KJSDebugWin get its source by setSourceFile and appendSourceFile interface. The key for source files is its URL. This doesn't work of course for about:blank documents. I made this patch: --- khtml_part.cpp 2002/11/29 21:51:06 1.772 +++ khtml_part.cpp 2002/12/01 15:43:41 @@ -3192,6 +3192,11 @@ bool KHTMLPart::processObjectRequest( kh if (!url.url().startsWith("about:")) { p->write(url.path()); } else { + if (d->m_doc && p->d->m_doc) { + static int count = 0; + url = d->m_doc->URL() + "_" + url.url() + "_" + QString::number(count++); + p->d->m_doc->setURL(url.url()); + } p->m_url = url; // we need a body element. testcase: p->write(""); which makes the url unique again (eg http:/www/index.html_about:blank_23). Do you see any problems here? Note that before, p->m_url and p->d->m_doc->m_url were different, which made them turn up twice in the debugger. Koos