[Webkit-unassigned] [Bug 27351] [Qt] navigator.platform returns an empty string in Symbian and in Linux platforms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 17 14:00:46 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27351





--- Comment #8 from Jan Alonzo <jmalonzo at gmail.com>  2009-07-17 14:00:46 PDT ---
(From update of attachment 32911)
>  String NavigatorBase::platform() const
>  {
> +#if PLATFORM(LINUX)
> +    struct utsname osname;
> +    int result = uname(&osname);
> +    String platformName;
> +    if (result >= 0) {
> +        platformName = osname.sysname;
> +        platformName += " ";
> +        platformName += osname.machine;
> +    }
> +    return platformName;

Can we please make use of DEFINE_STATIC_LOCAL here for platformName?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list