Bug 112312 - Platform incorrectly indentified as PPC Mac OS X on Intel Mac 64-bit
Summary: Platform incorrectly indentified as PPC Mac OS X on Intel Mac 64-bit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 19:37 PDT by Jonathan Liu
Modified: 2013-03-14 01:59 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.63 KB, patch)
2013-03-13 19:46 PDT, Jonathan Liu
no flags Details | Formatted Diff | Diff
Patch (3.65 KB, patch)
2013-03-13 19:52 PDT, Jonathan Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Liu 2013-03-13 19:37:30 PDT
In several files:
-Source/WebCore/platform/gtk/UserAgentGtk.cpp
-Source/WebKit/efl/ewk/ewk_settings.cpp
-Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp

There is a check "#if CPU(X86)" to determine if the platform is "Intel Mac OS X". On Intel Mac 64-bit, CPU(X86) is false and CPU(X86_64) is true. Several other places check it correctly using "#if CPU(X86) || CPU(X86_64). The files just need to be corrected to also check for CPU(X86_64).
Comment 1 Jonathan Liu 2013-03-13 19:46:48 PDT
Created attachment 193041 [details]
Patch
Comment 2 WebKit Review Bot 2013-03-13 19:50:22 PDT
Attachment 193041 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/platform/gtk/UserAgentGtk.cpp', u'Source/WebKit/efl/ChangeLog', u'Source/WebKit/efl/ewk/ewk_settings.cpp', u'Source/WebKit/wx/ChangeLog', u'Source/WebKit/wx/WebKitSupport/FrameLoaderClientWx.cpp']" exit_code: 1
Source/WebKit/efl/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Source/WebCore/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Source/WebKit/wx/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 3 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Jonathan Liu 2013-03-13 19:52:58 PDT
Created attachment 193042 [details]
Patch
Comment 4 Simon Hausmann 2013-03-14 01:55:21 PDT
Comment on attachment 193042 [details]
Patch

I suggest to use the same macros on the Qt side, too :)
Comment 5 WebKit Review Bot 2013-03-14 01:59:42 PDT
Comment on attachment 193042 [details]
Patch

Clearing flags on attachment: 193042

Committed r145795: <http://trac.webkit.org/changeset/145795>
Comment 6 WebKit Review Bot 2013-03-14 01:59:46 PDT
All reviewed patches have been landed.  Closing bug.