User:Sardisson/Gecko is Gecko: Difference between revisions

Jump to navigation Jump to search
→‎Sniffing for "Gecko/" : Good: Note about WebKit, so look for "Gecko/"
(→‎References: reed got .org back, uh, some months ago; add "feature detection is not browser detection")
(→‎Sniffing for "Gecko/" : Good: Note about WebKit, so look for "Gecko/")
Line 40: Line 40:
For example, many sites currently sniff for “Firefox” (or perhaps “Firefox/1.0.x” or “Firefox/1.5.0.x”) and send those user-agents code tailored to Gecko’s capabilites and bugs (or Gecko 1.7.x’s or Gecko 1.8.0.x’s) and ignore other Gecko-based browsers, perhaps sending them code “tailored” for unknown user-agents, perhaps lumping other current Gecko browsers with archaic Netscape releases, or, in extreme cases denying entry, sending unstyled content, or the like.  (Since spring 2006, sniffing for “Firefox” no longer detects development versions of Firefox, which are branded differently and have user-agent strings to match this branding.)
For example, many sites currently sniff for “Firefox” (or perhaps “Firefox/1.0.x” or “Firefox/1.5.0.x”) and send those user-agents code tailored to Gecko’s capabilites and bugs (or Gecko 1.7.x’s or Gecko 1.8.0.x’s) and ignore other Gecko-based browsers, perhaps sending them code “tailored” for unknown user-agents, perhaps lumping other current Gecko browsers with archaic Netscape releases, or, in extreme cases denying entry, sending unstyled content, or the like.  (Since spring 2006, sniffing for “Firefox” no longer detects development versions of Firefox, which are branded differently and have user-agent strings to match this branding.)


===Sniffing for “Gecko” : Good===
===Sniffing for "Gecko/" : Good===
Instead, with '''absolutely no additional work on the part of the author''', the site could work correctly on dozens of other Gecko-based browsers on multiple operating systems and hardware configurations: Camino, <s>Epiphany</s>, Fennec (Mobile Firefox), Flock, Galeon, K-Meleon, SeaMonkey, Netscape Navigator 9, Maemo Browser, and [http://geckoisgecko.info others] (as well as Mozilla 1.7.x and Netscape 8, for Gecko 1.7.x).
Instead, with '''absolutely no additional work on the part of the author''', the site could work correctly on dozens of other Gecko-based browsers on multiple operating systems and hardware configurations: Camino, <s>Epiphany</s>, Fennec (Mobile Firefox), <s>Flock</s>, Galeon, K-Meleon, SeaMonkey, Netscape Navigator 9, Maemo Browser, and [http://geckoisgecko.info others] (as well as Mozilla 1.7.x and Netscape 8, for Gecko 1.7.x).
 
Given that Safari has a "like Gecko)" in its UserAgent string, you should look for "Gecko/". Do NOT look for "Gecko/20", because the date string may be changed to a version string later, e.g. "Gecko/2.1" or "Gecko/3.0".
 
So: '''Check for "Gecko/"'''.


(also Gecko/XULRunner apps that aren’t primarily browsers, like NNW and friends are with WebKit, or [http://starkravingfinkle.org/blog/2007/03/site-specific-browser-webrunner/ site-specific browsers] [Prism])
(also Gecko/XULRunner apps that aren’t primarily browsers, like NNW and friends are with WebKit, or [http://starkravingfinkle.org/blog/2007/03/site-specific-browser-webrunner/ site-specific browsers] [Prism])
Confirmed users
596

edits

Navigation menu