Bug 297553: Enable serverpush for Opera
r/a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263896 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
27467733f1
commit
fca185824d
@ -1 +1 @@
|
||||
8253
|
||||
8254
|
||||
@ -109,11 +109,12 @@ my $format = $template->get_format("list/list", scalar $cgi->param('format'),
|
||||
# http://www.browsercaps.org used as source of compatible browsers.
|
||||
# Safari (WebKit) does not support it, despite a UA that says otherwise (bug 188712)
|
||||
# MSIE 5+ supports it on Mac (but not on Windows) (bug 190370)
|
||||
# Opera supports it.
|
||||
#
|
||||
my $serverpush =
|
||||
$format->{'extension'} eq "html"
|
||||
&& exists $ENV{'HTTP_USER_AGENT'}
|
||||
&& $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/
|
||||
&& $ENV{'HTTP_USER_AGENT'} =~ /(Mozilla.[3-9]|Opera)/
|
||||
&& (($ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/) || ($ENV{'HTTP_USER_AGENT'} =~ /MSIE 5.*Mac_PowerPC/))
|
||||
&& $ENV{'HTTP_USER_AGENT'} !~ /WebKit/
|
||||
&& !defined($cgi->param('serverpush'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user