Just following this up. Did we change the UA? If so, what did we change it
to?

Girish

On 11/11/13, 3:23 AM, "Menard, Alexis" <[email protected]> wrote:

>
>
>On Nov 11, 2013, at 12:32 AM, Zhu, Yongsheng <[email protected]>
>wrote:
>
>> I suggest to at least use Chrome mobile user agent so that web pages
>>can be aware and send mobile version web pages.
>> Adding the crosswalk information is acceptable and makes the UA longer
>>but to be honest we need the support of web servers in future.
>
>Indeed but we need to add Crosswalk so you can actually detec it over the
>« raw » Android.
>
>> 
>> Below is the current UA string for Android:
>> Mozilla/5.0 (Linux; Android 4.2.2; ZTE V975 Build/JDQ39)
>>AppleWebKit/537.36 (KHTML, like Gecko) Chrome/3.31.33.0 Mobile
>>Safari/537.36
>> 
>> Yongsheng
>> 
>>> -----Original Message-----
>>> From: Crosswalk-dev
>>>[mailto:[email protected]]
>>> On Behalf Of Menard, Alexis
>>> Sent: Saturday, November 09, 2013 1:03 AM
>>> To: <[email protected]>
>>> Subject: [Crosswalk-dev] User Agent of Crosswalk.
>>> 
>>> Hi,
>>> 
>>> We didn't really define the user agent of Crosswalk so far. We all
>>>know that
>>> user-agent are evil, blablabla, however we can't force the entire
>>>planet to follow
>>> good coding practices. Today it's defined like that :
>>> 
>>> std::string XWalkContentClient::GetUserAgent() const {
>>>  // TODO(hmin): Define user agent for xwalk.
>>>  std::string product = "Chrome/" XWALK_VERSION;
>>>  CommandLine* command_line = CommandLine::ForCurrentProcess();
>>>  if (command_line->HasSwitch(switches::kUseMobileUserAgent))
>>>    product += " Mobile";
>>>  return webkit_glue::BuildUserAgentFromProduct(product);
>>> }
>>> 
>>> where XWALK_VERSION is for example 1.29.4.0.
>>> 
>>> I believe we should probably put < crosswalk > somewhere no?
>>> 
>>> Ideas?
>>> 
>>> Software Engineer @
>>> Intel Open Source Technology Center
>>> 
>>> _______________________________________________
>>> Crosswalk-dev mailing list
>>> [email protected]
>>> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
>
>_______________________________________________
>Crosswalk-dev mailing list
>[email protected]
>https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to