Skip Menu |
 

This queue is for tickets about the HTML-ParseBrowser CPAN distribution.

Report information
The Basics
Id: 110144
Status: open
Priority: 0/
Queue: HTML-ParseBrowser

People
Owner: Nobody in particular
Requestors: jpl.jpl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.10
Fixed in: (no value)



Subject: Opera vs. Chrome
Download (untitled) / with headers
text/plain 1.7k
If I feed Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60 into http://www.useragentstring.com/index.php, the browser is reported as Chrome 42.0.2311.152 If I feed it into HTML::ParseBrowser, version 1.10 (current, I believe), I get DB<1> use HTML::ParseBrowser DB<2> $raw_string='Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60' DB<3> $uas = HTML::ParseBrowser->new($raw_string); DB<4> x $uas 0 HTML::ParseBrowser=HASH(0x2118440) 'detail' => 'Windows NT 6.3; WOW64; KHTML, like Gecko' 'langs' => ARRAY(0x2110378) empty array 'name' => 'Opera' 'os' => 'Windows NT 6.3' 'ostype' => 'Windows NT' 'osvers' => 8.1 'properties' => ARRAY(0x210fb50) 0 'Windows NT 6.3' 1 'WOW64' 2 'KHTML, like Gecko' 'user_agent' => 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36 OPR/29.0.1795.60' 'useragents' => ARRAY(0x210fe68) 0 'Mozilla/5.0' 1 'AppleWebKit/537.36' 2 'Chrome/42.0.2311.152' 3 'Safari/537.36' 4 'OPR/29.0.1795.60' 'version' => HASH(0x210fcb8) 'major' => 29 'minor' => 0 'v' => '29.0.1795.60' In particular, name and version are reported as 'Opera 29.0.1795.60'. Given a large collection of tickets submitted to Khan Academy, almost all tickets for a particular rendering problem are associated with Chrome. Only this string reports Opera. This suggests that useragentstring.com may be correct. Not a big deal, but if this something that looks like a bug, I thought you might be interested.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.