WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
127420
[EFL][WK2] defaultTextEncodingName should be stored as a member variable of EwkSettings
https://bugs.webkit.org/show_bug.cgi?id=127420
Summary
[EFL][WK2] defaultTextEncodingName should be stored as a member variable of E...
Jinwoo Song
Reported
2014-01-22 02:52:36 PST
As the defaultTextEncodingName is returned as a local WKEinaSharedString variable, the stringshared data is de-refed by eina_stringshare_del(). To maintain the reference counter, the defaultTextEncodingName should be stored as a member variable of EwkSettings class.
Attachments
Patch
(4.52 KB, patch)
2014-01-22 03:01 PST
,
Jinwoo Song
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jinwoo Song
Comment 1
2014-01-22 03:01:32 PST
Created
attachment 221849
[details]
Patch
Ryuan Choi
Comment 2
2014-01-22 03:20:37 PST
Looks fine to me.
Ryuan Choi
Comment 3
2014-01-22 03:26:33 PST
Comment on
attachment 221849
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221849&action=review
> Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp:353 > +void EwkSettings::setDefaultTextEncodingName(const char* name)
Nit, we normally added methods above the ewk APIs.
Gyuyoung Kim
Comment 4
2014-01-22 03:47:30 PST
Comment on
attachment 221849
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221849&action=review
> Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp:188 > + settings->setDefaultTextEncodingName(encoding);
IIRC, we have tried to use C-API in ewk directly. For example, ewk_view.cpp, ewk_context_menu.cpp and so on. Can't we adjust it to ewk_settings as well ?
Jinwoo Song
Comment 5
2014-01-22 17:49:26 PST
Comment on
attachment 221849
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221849&action=review
>> Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp:188 >> + settings->setDefaultTextEncodingName(encoding); > > IIRC, we have tried to use C-API in ewk directly. For example, ewk_view.cpp, ewk_context_menu.cpp and so on. Can't we adjust it to ewk_settings as well ?
There is a previous bug,
https://bugs.webkit.org/show_bug.cgi?id=107820
. I maybe follow up the bug after this one. How do you think about this?
Gyuyoung Kim
Comment 6
2014-01-22 18:07:56 PST
(In reply to
comment #5
)
> (From update of
attachment 221849
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=221849&action=review
> > >> Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp:188 > >> + settings->setDefaultTextEncodingName(encoding); > > > > IIRC, we have tried to use C-API in ewk directly. For example, ewk_view.cpp, ewk_context_menu.cpp and so on. Can't we adjust it to ewk_settings as well ? > > There is a previous bug,
https://bugs.webkit.org/show_bug.cgi?id=107820
. I maybe follow up the bug after this one. > How do you think about this?
I see. Let's update the bug after landing this.
WebKit Commit Bot
Comment 7
2014-01-22 19:05:13 PST
Comment on
attachment 221849
[details]
Patch Clearing flags on attachment: 221849 Committed
r162584
: <
http://trac.webkit.org/changeset/162584
>
WebKit Commit Bot
Comment 8
2014-01-22 19:05:18 PST
All reviewed patches have been landed. Closing bug.
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