WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73104
[EFL] Remove duplicated UA information function
https://bugs.webkit.org/show_bug.cgi?id=73104
Summary
[EFL] Remove duplicated UA information function
Gyuyoung Kim
Reported
2011-11-24 18:14:06 PST
Though ewk_setting already implemented an internal function for UA(user agent) information, FrameLoaderClientEfl has used duplicated function for UA information.
Attachments
Patch
(4.67 KB, patch)
2011-11-24 18:15 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(4.66 KB, patch)
2011-11-26 03:13 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2011-11-24 18:15:39 PST
Created
attachment 116554
[details]
Patch
Raphael Kubo da Costa (:rakuco)
Comment 2
2011-11-25 04:29:07 PST
Comment on
attachment 116554
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116554&action=review
> Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp:78 > + return makeString(ewk_settings_default_user_agent_get());
makeString has been deprecated for some time, please either create the string directly or return ewk_settings_default_user_agent_get() and let the String object be implicitly created.
> Source/WebKit/efl/ewk/ewk_settings.cpp:-72 > -
I'd rather leave this empty line here for readability.
> Source/WebKit/efl/ewk/ewk_settings.cpp:-77 > -
Ditto.
Gyuyoung Kim
Comment 3
2011-11-26 03:13:30 PST
Created
attachment 116653
[details]
Patch
Gyuyoung Kim
Comment 4
2011-11-26 03:15:34 PST
Comment on
attachment 116554
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116554&action=review
>> Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp:78 >> + return makeString(ewk_settings_default_user_agent_get()); > > makeString has been deprecated for some time, please either create the string directly or return ewk_settings_default_user_agent_get() and let the String object be implicitly created.
Done. I use String directly.
>> Source/WebKit/efl/ewk/ewk_settings.cpp:-72 >> - > > I'd rather leave this empty line here for readability.
Done.
>> Source/WebKit/efl/ewk/ewk_settings.cpp:-77 >> - > > Ditto.
I think it is better to remove empty line on #elif.
Raphael Kubo da Costa (:rakuco)
Comment 5
2011-11-28 05:13:26 PST
LGTM.
Filip Pizlo
Comment 6
2011-11-30 00:59:18 PST
Comment on
attachment 116653
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=116653&action=review
r=me
> Source/WebKit/efl/ewk/ewk_settings.cpp:80 > + uaOsVersion = "PPC Mac OS X";
Slight nitpick: presumably CPU(X86) tells you that you were *built* on X86. So you could be running a PPC binary on an X86 Mac. You could query what kind of Mac you're on using sysctl(). hw.machine will tell you the kind of CPU. This is not a big deal, probably.
Gyuyoung Kim
Comment 7
2011-11-30 01:37:37 PST
(In reply to
comment #6
)
> (From update of
attachment 116653
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=116653&action=review
> > r=me > > > Source/WebKit/efl/ewk/ewk_settings.cpp:80 > > + uaOsVersion = "PPC Mac OS X"; > > Slight nitpick: presumably CPU(X86) tells you that you were *built* on X86. So you could be running a PPC binary on an X86 Mac. You could query what kind of Mac you're on using sysctl(). hw.machine will tell you the kind of CPU. This is not a big deal, probably.
Ok, I will enhance this function according to your advice on new bug. Thank you.
WebKit Review Bot
Comment 8
2011-11-30 02:56:43 PST
Comment on
attachment 116653
[details]
Patch Clearing flags on attachment: 116653 Committed
r101471
: <
http://trac.webkit.org/changeset/101471
>
WebKit Review Bot
Comment 9
2011-11-30 02:56:48 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