Commit 9ad333ec authored by ddkilzer's avatar ddkilzer
Browse files

WebCore:

        Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=8251
        navigator.product incorrect in WebKit.app on Intel Macs

        For navigator.platform return "MacIntel" for Intel processors, "MacPPC"
        otherwise.

        * bindings/js/kjs_navigator.cpp:
        (KJS::Navigator::getValueProperty):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 25d78b5f
2006-07-09 Rob Buis <buis@kde.org>
Reviewed by Darin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=8251
navigator.product incorrect in WebKit.app on Intel Macs
For navigator.platform return "MacIntel" for Intel processors, "MacPPC"
otherwise.
* bindings/js/kjs_navigator.cpp:
(KJS::Navigator::getValueProperty):
2006-07-08 Timothy Hatcher <timothy@apple.com>
Reviewed by Maciej.
......
......@@ -30,6 +30,16 @@
#include "Language.h"
#include "PlugInInfoStore.h"
#if PLATFORM(MAC) && PLATFORM(PPC)
#define WEBCORE_NAVIGATOR_PLATFORM "MacPPC"
#elif PLATFORM(MAC) && PLATFORM(X86)
#define WEBCORE_NAVIGATOR_PLATFORM "MacIntel"
#elif PLATFORM(WIN_OS)
#define WEBCORE_NAVIGATOR_PLATFORM "Win32"
#else
#define WEBCORE_NAVIGATOR_PLATFORM ""
#endif
using namespace WebCore;
namespace KJS {
......@@ -175,13 +185,7 @@ JSValue *Navigator::getValueProperty(ExecState *exec, int token) const
case UserAgent:
return jsString(userAgent);
case Platform:
#if __APPLE__
return jsString("MacPPC");
#elif WIN32
return jsString("Win32");
#else
return jsString("");
#endif
return jsString(WEBCORE_NAVIGATOR_PLATFORM);
case _Plugins:
return new Plugins(exec);
case _MimeTypes:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment