| Summary: | [Win] Application name in user agent string is truncated. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | peavo | ||||||||||
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | andersca, benjamin, bfulgham, cmarcelo, commit-queue | ||||||||||
| Priority: | P2 | ||||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
peavo
2014-01-11 01:03:01 PST
Created attachment 220924 [details]
Patch
Created attachment 220925 [details]
Patch
Comment on attachment 220925 [details]
Patch
This won't work if the application name contains 16-bit characters. Maybe something in the network layer is wrong?
Comment on attachment 220925 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220925&action=review > Source/WebKit/win/WebView.cpp:3186 > + m_applicationName = String::make8BitFrom16BitSource(applicationName16.characters16(), applicationName16.length()); Maybe this should just be applicationName16.utf8().data(). Created attachment 220945 [details]
Patch
(In reply to comment #4) > (From update of attachment 220925 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=220925&action=review > > > Source/WebKit/win/WebView.cpp:3186 > > + m_applicationName = String::make8BitFrom16BitSource(applicationName16.characters16(), applicationName16.length()); > > Maybe this should just be applicationName16.utf8().data(). Thanks for looking into this, guys :) Updated patch according to comments. Comment on attachment 220945 [details]
Patch
I don't think this is quite right either. m_applicationName is already Unicode encoded.
Created attachment 221042 [details]
Patch
(In reply to comment #8) > Created an attachment (id=221042) [details] > Patch Updated patch, the root of the problem seems to be a missing 8-bit check in the string concatenation. Comment on attachment 221042 [details] Patch Clearing flags on attachment: 221042 Committed r161983: <http://trac.webkit.org/changeset/161983> All reviewed patches have been landed. Closing bug. |