ewk_view_setting_encoding_custom_set() has set a new custom encoding unconditionally despite new custom encoding is same with existing value. This patch sets only new custom encoding when new custom encoding value is different from existing value.
Created attachment 109124 [details] Patch
Comment on attachment 109124 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=109124&action=review Although this check could be made inside the embedder, it is harmless enough to be inside EWK. The change looks fine, just a minor nit in the ChangeLog entry. > Source/WebKit/efl/ChangeLog:10 > + ewk_view_setting_encoding_custom_set() has set a new custom encoding unconditionally > + despite new custom encoding is same with existing value. This patch sets only new > + custom encoding when new custom encoding value is different from existing value. ewk_view_setting_encoding_custom_set() sets a new custom ... value, reloading the page even when not needed. This patch sets the custom encoding only when the new value differs from the current value.
Created attachment 109221 [details] Patch
Leandro, thank you for your comment. I modify ChangeLog again.
Comment on attachment 109221 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=109221&action=review > Source/WebKit/efl/ChangeLog:10 > + ewk_view_setting_encoding_custom_set() has set a new custom encoding value, reloading > + the page even when not needed. This patch sets the custom encoding only when new value > + differ. Sorry to nitpick, but I think something along the lines of "Only set the custom encoding value if it is different from the current value, to avoid reloading the page." would be more clear.
Created attachment 109551 [details] Patch
I modify it again.
Comment on attachment 109551 [details] Patch Informal r+.
Comment on attachment 109551 [details] Patch Rubberstamped.
Comment on attachment 109551 [details] Patch Clearing flags on attachment: 109551 Committed r96676: <http://trac.webkit.org/changeset/96676>
All reviewed patches have been landed. Closing bug.