| Summary: | [EFL] ewk_view_page_contents_get() API test is flaky | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryuan Choi <ryuan.choi> | ||||||
| Component: | WebKit EFL | Assignee: | Ryuan Choi <ryuan.choi> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, lucas.de.marchi | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Ryuan Choi
2015-05-06 05:59:55 PDT
Created attachment 252538 [details]
Patch
Comment on attachment 252538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252538&action=review > Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:616 > + contentsContext->callback(contentsContext->type, String(WKDataGetBytes(wkData), WKDataGetSize(wkData)).utf8().data(), contentsContext->userData); It doesn’t make sense to take this data and convert it to UTF-8 as if it was Latin-1. If you want to put it in a CString so it gets null terminated, then I suggest creating the CString directly, not through a String. Created attachment 252549 [details]
Patch
(In reply to comment #2) > Comment on attachment 252538 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=252538&action=review > > > Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:616 > > + contentsContext->callback(contentsContext->type, String(WKDataGetBytes(wkData), WKDataGetSize(wkData)).utf8().data(), contentsContext->userData); > > It doesn’t make sense to take this data and convert it to UTF-8 as if it was > Latin-1. If you want to put it in a CString so it gets null terminated, then > I suggest creating the CString directly, not through a String. Thanks, I updated to use CString. Comment on attachment 252549 [details]
Patch
r+ed based on Darin's comment.
Comment on attachment 252549 [details] Patch Clearing flags on attachment: 252549 Committed r183908: <http://trac.webkit.org/changeset/183908> All reviewed patches have been landed. Closing bug. |