I filed a bug https://crosswalk-project.org/jira/browse/XWALK-7001 about this 
case.

I am not sure if cnet.com will trigger multiple window feature.
I tried with below local page(From 
https://crosswalk-project.org/jira/browse/XWALK-2754), and read the second user 
agent string with newView.getUserAgentString(), the second user agent is 
correct.
But the new user agent displayed by 
http://www.whoishostingthis.com/tools/user-agent/ is the default user agent.

<!DOCTYPE html>

<html>
<head>
<meta name="viewport" content="width=device-width">
<title>Create Window micro-app</title>

<!-- styles -->

<!-- scripts -->

<script>

function
openURL ()
{
         alert ("opening window");
         window.open ("http://www.whoishostingthis.com/tools/user-agent/";);
}

</script>

</head>

<body>
         <div>
                 <button onclick="openURL()">open crosswalk website in new 
window</button>
         </div>
</body>

</html>



Regards,
Xing

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Martin 
Preukschat ([email protected])
Sent: Monday, June 13, 2016 8:29 PM
To: [email protected]
Subject: [Crosswalk-help] User agent modification in '2nd window' not working

Hello everyone,

i am using embedding API (compile 'org.xwalk:xwalk_core_library:18.48.477.13'). 
I'm not sure if it is a bug. In my application i need to modify user agent. On 
the first xwalkview it is working perfectly, but on creating new xwalkview as 
'new tab' the modification will be overwritten by 'default' user agent. Example 
code would be at http://pastebin.com/WJMd98Ur .

Thanks,
Martin

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

Reply via email to