Summary: | setting cookies from javascript does not work | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Luciano Montanaro <mikelima> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, rvdboom, scott, spotter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | a simple test case. |
Description
Luciano Montanaro
2004-01-19 11:55:02 UTC
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. *** |