Is it okay to spoof navigator.product by default?

David Faure faure at kde.org
Tue Sep 21 15:54:31 BST 2004


On Tuesday 21 September 2004 16:54, Leo Savernik wrote:
> Am Dienstag, 21. September 2004 16:07 schrieb Allan Sandfeld Jensen:
> > On Tuesday 21 September 2004 16:00, Leo Savernik wrote:
> > > Am Dienstag, 21. September 2004 15:51 schrieb Allan Sandfeld Jensen:
> > > > +        return Undefined();
> > >
> > > Is that the same IE does?
> >
> > It's what the Safari-code says IE does. It is not something I've tested
> > myself.
> 
> Afaik Safari can't spoof the user-agent id, so I guess they simply put 
> Undefined because it doesn't matter for them anyway.
> 
> Konqueror should deliver exactly what IE delivers here.

AFAIK navigator.product is a mozilla invention, so IE doesn't provide it.
So the Undefined() looks fine to me; it's the "default case" that doesn't.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list