buildinseo / browsershots

Automatically exported from code.google.com/p/browsershots
0 stars 0 forks source link

Relax user agent verification / autodetect user agent #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently it's quite tedious to upgrade a browser for a factory: you have to 
re-register the updated browser, otherwise you'll get an error as follows:
  Unknown user agent: Opera/9.80 (X11; Linux i686; U; de) Presto/2.2.15 Version/10.11.

It would be far more comfortable if this would get handled automatically:
1. Just register the command to execute the browser
2. The browser would access some URL internal to browsershots.org, where the 
user agent string gets read
3. The entry for the factory entry gets updated with the user agent string 
reported by the browser (from 2.)

When updating a browser (which may happen automatically for security updates 
via package management), browsershots currently already detects that the 
browser is unknown (therefore the error I've mentioned initially).
If this happens, the user agent string for this browser entry would get updated 
automatically, too.
In this case however, the request should be considered invalid though: the 
browser is not the one initially requested for this job (e.g. Firefox 3.5 => 
3.6).

Original issue reported on code.google.com by dhahler@gmail.com on 29 Jun 2010 at 10:57