WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
58973
[Qt] Problem evaluating javascript function {document.cookie = 'name=value' } when a space ' ' character is present in the value string.
https://bugs.webkit.org/show_bug.cgi?id=58973
Summary
[Qt] Problem evaluating javascript function {document.cookie = 'name=value' }...
Kiran Raikar
Reported
2011-04-20 02:30:23 PDT
This problem is reproducible in all Nokia Symbian Phones (we tested on N97 and N8) with Qt 4.6.3 to Qt 4.7.3 which contains the corresponding versions of QtWebkit. This can also be reproduced easily on Symbian S60 emulator. Assume a Javascript call m_webview->page()->mainFrame()->evaluateJavaScript ("document.cookie = 'favoriteTeams = ABC '"); //Working perfectly. m_webview->page()->mainFrame()->evaluateJavaScript ("document.cookie = 'favoriteTeams = A B C '");//Not working due to spaces.In this case only the first character/string is getting saved in cookie and the strings after the space ' ' is ignored.
Attachments
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2011-04-20 06:37:44 PDT
I can reproduce on trunk, I'll have a look.
Benjamin Poulain
Comment 2
2011-04-20 07:39:33 PDT
After some digging: 1) this type of cookie seems invalid from the "spec" 2) the behavior comes for Qt parsing of Cookies with QNetworkCookie::parseCookies():
http://bugreports.qt.nokia.com/browse/QTBUG-18876
I keep this bug open but P5 in order to track the bug QTBUG-18876 of Qt.
Benjamin Poulain
Comment 3
2011-04-29 15:39:02 PDT
Peter fixed the cookiejar for Qt 4.8. We should add a layout test in WebKit and close this bug.
Jocelyn Turcotte
Comment 4
2014-02-03 03:17:36 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug