Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.2.1 OS: Linux The testcase included does not work in konqueror CVS, even if cookies are apparently enabled. It works fine in mozilla, and in konqueror 3.1
Created attachment 4236 [details] a simple test case. Whit javascript enabled, it should print "setCookie() is working". It currently prints "setCookie() is not working.
Subject: kdelibs/khtml/html CVS commit by faure: URL() is a KURL now! This broke document.cookies. Will backport. CCMAIL: 72941-done@bugs.kde.org M +4 -4 html_documentimpl.cpp 1.159 --- kdelibs/khtml/html/html_documentimpl.cpp #1.158:1.159 @@ -97,5 +97,5 @@ DOMString HTMLDocumentImpl::domain() con { if ( m_domain.isEmpty() ) // not set yet (we set it on demand to save time and space) - m_domain = KURL(URL()).host(); // Initially set to the host + m_domain = URL().host(); // Initially set to the host return m_domain; } @@ -104,5 +104,5 @@ void HTMLDocumentImpl::setDomain(const D { if ( m_domain.isEmpty() ) // not set yet (we set it on demand to save time and space) - m_domain = KURL(URL()).host().lower(); // Initially set to the host + m_domain = URL().host().lower(); // Initially set to the host if ( m_domain.isEmpty() /*&& view() && view()->part()->openedByJS()*/ ) @@ -144,5 +144,5 @@ DOMString HTMLDocumentImpl::cookie() con QByteArray params, reply; QDataStream stream(params, IO_WriteOnly); - stream << URL() << windowId; + stream << URL().url() << windowId; if (!kapp->dcopClient()->call("kcookiejar", "kcookiejar", "findDOMCookies(QString,long int)", params, @@ -178,5 +178,5 @@ void HTMLDocumentImpl::setCookie( const fake_header.append(value.string().latin1()); fake_header.append("\n"); - stream << URL() << fake_header << windowId; + stream << URL().url() << fake_header << windowId; if (!kapp->dcopClient()->send("kcookiejar", "kcookiejar", "addCookies(QString,QCString,long int)", params))
*** Bug 73107 has been marked as a duplicate of this bug. ***
*** Bug 73290 has been marked as a duplicate of this bug. ***
*** Bug 73933 has been marked as a duplicate of this bug. ***
*** Bug 72193 has been marked as a duplicate of this bug. ***
*** Bug 74766 has been marked as a duplicate of this bug. ***