Branch: Tag:

2004-05-24

2004-05-24 23:14:51 by Martin Nilsson <mani@lysator.liu.se>

Don't use supports values.

Rev: server/modules/graphics/graphic_text.pike:1.300
Rev: server/modules/misc/ismap.pike:1.20
Rev: server/modules/tags/killframe.pike:1.36

12:    * Chris Burgess <chris@ibex.co.nz>    */    - constant cvs_version = "$Id: killframe.pike,v 1.35 2001/09/21 15:58:16 jhs Exp $"; + constant cvs_version = "$Id: killframe.pike,v 1.36 2004/05/24 23:14:51 mani Exp $";   constant thread_safe=1;      #include <module.h>
52:   {    NOCACHE();    -  if( !id->supports->javascript ) return ""; -  +     string javascript;       while( id->misc->orig )
93:    if(id->query)    my_url += "?"+ id->query;    -  //top.location = self.location breaks some versions of IE. -  //Mozilla 3 on Solaris cows with top.frames.length +  // top.location = self.location breaks some versions of IE. +  // Mozilla 3 on Solaris cows with top.frames.length    if( id->client && id->client[0][..8] == "Mozilla/3" )    javascript = ( " if(top.location != \""+ my_url +"\")\n"    " top.location = \""+ my_url +"\";\n" );