From 7dbccc55a388919af33d47c19b46012dd347f704 Mon Sep 17 00:00:00 2001 From: "jake%acutex.net" Date: Wed, 13 Feb 2002 14:19:07 +0000 Subject: [PATCH] Bug 121105 - type="application/x-javascript" confuses IE, so we should use the new $::script_type variable added in bug 123339. r= kiko git-svn-id: svn://10.0.0.236/trunk@114390 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bonsai/cvsblame.cgi | 47 ++++++++++------------------ mozilla/webtools/bonsai/cvsquery.cgi | 2 +- mozilla/webtools/bonsai/cvsview2.cgi | 2 +- mozilla/webtools/bonsai/rview.cgi | 2 +- 4 files changed, 19 insertions(+), 34 deletions(-) diff --git a/mozilla/webtools/bonsai/cvsblame.cgi b/mozilla/webtools/bonsai/cvsblame.cgi index d1ba1e446c6..fd40de277e6 100755 --- a/mozilla/webtools/bonsai/cvsblame.cgi +++ b/mozilla/webtools/bonsai/cvsblame.cgi @@ -76,21 +76,6 @@ my $SubHead = ''; my @src_roots = getRepositoryList(); -# Layers are supported only by Netscape 4. -# The DOM standards are supported by Mozilla and IE 5 or above. It should -# also be supported by any browser claiming "Mozilla/5" or above. -my ($use_layers, $use_dom) = 0; -if (defined $ENV{HTTP_USER_AGENT}) { - my $user_agent = $ENV{HTTP_USER_AGENT}; - if ($user_agent =~ m@^Mozilla/4.@ && $user_agent !~ /MSIE/) { - $use_layers = 1; - } elsif ($user_agent =~ m@MSIE (\d+)@) { - $use_dom = 1 if $1 >= 5; - } elsif ($user_agent =~ m@^Mozilla/(\d+)@) { - $use_dom = 1 if $1 >= 5; - } -} - # Init sanitiazation source checker # my $sanitization_dictionary = $::FORM{sanitize}; @@ -255,8 +240,8 @@ my $graph_cell = Param('cvsgraph') ? <<"--endquote--" : ""; --endquote-- print " ("; print "$browse_revtag:" unless $browse_revtag eq 'HEAD'; print $revision if $revision; @@ -373,8 +358,8 @@ foreach $revision (@::revision_map) $output .= "\n"; -if ($use_layers || $use_dom) { +if ($::use_layers || $::use_dom) { # Write out cvs log messages as a JS variables # or hidden
's - print qq|"; } @@ -459,8 +444,8 @@ sub print_top { print "CVS Blame $title_text"; - print <<__TOP__ if $use_layers; -