Bug 44495

Summary: [EFL] Url of HistoryItem was broken for special character like korean
Product: WebKit Reporter: Ryuan Choi <ryuan.choi>
Component: WebKit EFLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: antognolli+webkit, commit-queue, lucas.de.marchi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch none

Description Ryuan Choi 2010-08-24 00:12:03 PDT
visiting any site after entered below site, url of history item was broken.

http://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8 (http://ko.wikipedia.org/wiki/위키백과:대문)

It's because of simple implementation of ewk_fram_view_state_save.
but I think that we can remove setTitle and setURLString in ewk_frame_view_state_save.

I checked like below. and I found that before and after was same.

void ewk_frame_view_state_save(Evas_Object *o, WebCore::HistoryItem* item)
{
    const char *title = ewk_frame_title_get(o);
    const char *uri = ewk_frame_uri_get(o);

    printf("%s\n", item->title().utf8().data());
    printf("=>%s\n", title);
    printf("%s\n", item->urlString().utf8().data());
    printf("=>%s\n", uri);
    item->setTitle(WTF::String::fromUTF8(title));
    item->setURLString(WTF::String::fromUTF8(uri));

    evas_object_smart_callback_call(o, "state,save", 0);
}
Comment 1 Ryuan Choi 2010-08-24 00:35:58 PDT
Created attachment 65225 [details]
Patch
Comment 2 Rafael Antognolli 2010-08-26 10:31:27 PDT
Hi Ryuan,

Can you detail more this problem? I just checked the url of this site on history (using Eve as test application), and it seems to work fine.

Is the url of this korean site that is broken? Or other urls? (actually, everything seems to be ok here)
Comment 3 Ryuan Choi 2010-08-27 07:33:00 PDT
(In reply to comment #2)
> Hi Ryuan,
> 
> Can you detail more this problem? I just checked the url of this site on history (using Eve as test application), and it seems to work fine.
> 
> Is the url of this korean site that is broken? Or other urls? (actually, everything seems to be ok here)

yes. It's hard to reproduce.

below is reproduce step.

1. launch like below
 EWeblauncher http://www.wikipedia.org
2. click link '한국어' and then you can see some korean site which is http://ko.wikipedia.org/wiki/위키백과:대문
3. click a one of link to move other page(I use English in left menu)
4. press F1 to move back.

I found that latest webkit crashes and previous version just print different page which explain broken link as korean.

I'll investigate why crash. but we'd better to remove this code.
It looks not required and buggy.
Comment 4 Adam Barth 2010-08-30 16:32:40 PDT
Comment on attachment 65225 [details]
Patch

ok
Comment 5 WebKit Commit Bot 2010-08-30 21:42:09 PDT
Comment on attachment 65225 [details]
Patch

Clearing flags on attachment: 65225

Committed r66451: <http://trac.webkit.org/changeset/66451>
Comment 6 WebKit Commit Bot 2010-08-30 21:42:14 PDT
All reviewed patches have been landed.  Closing bug.