Bug 58973
| Summary: | [Qt] Problem evaluating javascript function {document.cookie = 'name=value' } when a space ' ' character is present in the value string. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kiran Raikar <kiran_raikar> |
| Component: | Platform | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | benjamin |
| Priority: | P5 | Keywords: | Qt, QtTriaged |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Kiran Raikar
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
I can reproduce on trunk, I'll have a look.
Benjamin Poulain
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
Peter fixed the cookiejar for Qt 4.8. We should add a layout test in WebKit and close this bug.
Jocelyn Turcotte
=== 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.