Last modified: 2006-09-12 17:02:59 UTC
Detection of the Safari browser in skins-1.5/common/wikibits.js is done by the line
var is_safari = ((clientPC.indexOf('AppleWebKit')!=-1) && (clientPC.indexOf('spoofer')==-1));
At least the current Safari version returns a client string containing
"applewebkit/417.9 (khtml, like gecko) safari/417.8"
wich fails the case sensitive comparisation with "AppleWebKit".
Safari sends AppleWebKit, but wikibits.js converts the agent string to lowercase
before doing comparisons.
Anyway, user-agent sniffing is kinda crappy; what actually uses these variables?
It's used for bug 4663. I need to change AppleWebKit to applewebkit and change the line mentioned there to get the toolbar working
Fixed in r13687 (but you should not use it; most functional
checks should be based on behavior, not user-agent reporting.)