Changeset 139071 in webkit
- Timestamp:
- Jan 8, 2013 10:10:07 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139070 r139071 1 2013-01-08 Dan Winship <danw@gnome.org> 2 3 Updates for Apache 2.4 4 https://bugs.webkit.org/show_bug.cgi?id=104478 5 6 Reviewed by Martin Robinson. 7 8 Apache 2.4 requires a slightly different config from 2.2, so split 9 fedora-httpd.conf into separate 2.2 and 2.4 versions. 10 11 2.4 is also more picky about passing request headers to CGI 12 scripts, and will ignore headers that aren't valid according to 13 the HTTP grammar, so change underscores to hyphens to fix them. 14 15 * http/conf/fedora-httpd-2.2.conf: Renamed from 16 LayoutTests/http/conf/fedora-httpd.conf. 17 * http/conf/fedora-httpd-2.4.conf: Based on 18 LayoutTests/http/conf/fedora-httpd.conf and updated for 2.4. 19 * http/tests/cookies/resources/cookies-test-pre.js: 20 (setCookies): 21 (clearCookies): 22 * http/tests/navigation/ping-cookie.html: 23 * http/tests/xmlhttprequest/xmlhttprequest-setrequestheader-no-value.html: 24 1 25 2013-01-08 Alexis Menard <alexis@webkit.org> 2 26 -
trunk/LayoutTests/http/conf/fedora-httpd-2.4.conf
r139070 r139071 2 2 ServerRoot "/etc/httpd" 3 3 4 LockFile "/tmp/WebKit/httpd.lock"5 4 PidFile "/tmp/WebKit/httpd.pid" 6 5 ScoreBoardFile "/tmp/WebKit/httpd.scoreboard" … … 17 16 MaxRequestsPerChild 100000 18 17 18 LoadModule mpm_prefork_module modules/mod_mpm_prefork.so 19 LoadModule authz_core_module modules/mod_authz_core.so 19 20 LoadModule authz_host_module modules/mod_authz_host.so 20 21 LoadModule include_module modules/mod_include.so … … 28 29 LoadModule cgi_module modules/mod_cgi.so 29 30 LoadModule ssl_module modules/mod_ssl.so 31 LoadModule unixd_module modules/mod_unixd.so 30 32 LoadModule php5_module modules/libphp5.so 31 33 … … 43 45 Options Indexes FollowSymLinks MultiViews ExecCGI Includes 44 46 AllowOverride All 45 Order allow,deny 46 Allow from all 47 Require all granted 47 48 </Directory> 48 49 … … 50 51 51 52 <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])"> 52 Order allow,deny 53 Deny from all 54 Satisfy All 53 Require all denied 55 54 </Files> 56 55 57 56 TypesConfig /etc/mime.types 58 DefaultType text/plain59 57 HostnameLookups Off 60 58 … … 147 145 # 148 146 <Files "rsrc"> 149 Order allow,deny 150 Deny from all 151 Satisfy All 147 Require all denied 152 148 </Files> 153 149 154 150 <Directory ~ ".*\.\.namedfork"> 155 Order allow,deny 156 Deny from all 157 Satisfy All 151 Require all denied 158 152 </Directory> -
trunk/LayoutTests/http/tests/cookies/resources/cookies-test-pre.js
r120167 r139071 160 160 var xhr = new XMLHttpRequest(); 161 161 xhr.open("GET", "resources/setCookies.cgi", false); 162 xhr.setRequestHeader("SET _COOKIE", cookie);162 xhr.setRequestHeader("SET-COOKIE", cookie); 163 163 xhr.send(null); 164 164 if (xhr.status == 200) { … … 221 221 while (cookie = cookies.pop()) { 222 222 xhr.open("GET", "resources/clearCookies.cgi", false); 223 xhr.setRequestHeader("CLEAR _COOKIE", cookie);223 xhr.setRequestHeader("CLEAR-COOKIE", cookie); 224 224 xhr.send(null); 225 225 } -
trunk/LayoutTests/http/tests/navigation/ping-cookie.html
r124692 r139071 18 18 var xhr = new XMLHttpRequest(); 19 19 xhr.open("GET", "../cookies/resources/setCookies.cgi", false); 20 xhr.setRequestHeader("SET _COOKIE", "hello=world;path=/");20 xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/"); 21 21 xhr.send(null); 22 22 if (xhr.status != 200) { -
trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-setrequestheader-no-value.html
r120167 r139071 10 10 req.open("GET", "resources/print-headers.cgi", false); 11 11 12 req.setRequestHeader("CUSTOM _HEADER", "");12 req.setRequestHeader("CUSTOM-HEADER", ""); 13 13 try { 14 14 req.send(""); -
trunk/Tools/ChangeLog
r139065 r139071 1 2013-01-08 Dan Winship <danw@gnome.org> 2 3 Add Apache 2.4 support for Fedora 18 4 https://bugs.webkit.org/show_bug.cgi?id=104478 5 6 Reviewed by Martin Robinson. 7 8 Apache 2.4's httpd.conf is slightly incompatible with 2.2's, so we 9 need a separate config. 10 11 * Scripts/webkitpy/layout_tests/port/base.py: 12 (Port._apache_version): 13 (Port._apache_config_file_name_for_platform): 14 * Scripts/webkitpy/layout_tests/port/port_testcase.py: 15 * Scripts/run-webkit-httpd: 16 * Scripts/webkitperl/httpd.pm: 17 (getApacheVersion): 18 (getDefaultConfigForTestDirectory): 19 (getHTTPDConfigPathForTestDirectory): 20 1 21 2013-01-08 Zan Dobersek <zandobersek@gmail.com> 2 22 -
trunk/Tools/Scripts/run-webkit-httpd
r130202 r139071 90 90 # Disable Keep-Alive support. Makes testing in multiple browsers easier (no need to wait 91 91 # for another browser's connection to expire). 92 "-c", "KeepAlive 0"92 "-c", "KeepAlive off" 93 93 ); 94 94 -
trunk/Tools/Scripts/webkitperl/httpd.pm
r130202 r139071 91 91 } 92 92 93 sub getApacheVersion 94 { 95 my $httpdPath = getHTTPDPath(); 96 my $version = `$httpdPath -v`; 97 $version =~ s/.*Server version: Apache\/(\d+\.\d+).*/\1/s; 98 return $version; 99 } 100 93 101 sub getDefaultConfigForTestDirectory 94 102 { … … 113 121 # Apache wouldn't run CGIs with permissions==700 otherwise 114 122 "-c", "User \"#$<\"", 115 "-c", "LockFile \"$httpdLockFile\"",116 123 "-c", "PidFile \"$httpdPidFile\"", 117 124 "-c", "ScoreBoardFile \"$httpdScoreBoardFile\"", 118 125 ); 126 127 if (getApacheVersion() eq "2.2") { 128 push(@httpdArgs, "-c", "LockFile \"$httpdLockFile\""); 129 } 119 130 120 131 # FIXME: Enable this on Windows once <rdar://problem/5345985> is fixed … … 135 146 my $httpdPath = getHTTPDPath(); 136 147 my $httpdConfDirectory = "$testDirectory/http/conf/"; 148 my $apacheVersion = getApacheVersion(); 137 149 138 150 if (isCygwin()) { … … 147 159 $httpdConfig = "apache2-debian-httpd.conf"; 148 160 } elsif (isFedoraBased()) { 149 $httpdConfig = "fedora-httpd .conf"; # This is an apache2 config, despite the name.161 $httpdConfig = "fedora-httpd-$apacheVersion.conf"; 150 162 } else { 151 163 # All other ports use apache2, so just use our default apache2 config. -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r138314 r139071 1210 1210 return self._filesystem.exists('/etc/debian_version') 1211 1211 1212 def _apache_version(self): 1213 config = self._executive.run_command([self._path_to_apache(), '-v']) 1214 return re.sub(r'(?:.|\n)*Server version: Apache/(\d+\.\d+)(?:.|\n)*', r'\1', config) 1215 1212 1216 # We pass sys_platform into this method to make it easy to unit test. 1213 1217 def _apache_config_file_name_for_platform(self, sys_platform): … … 1216 1220 if sys_platform.startswith('linux'): 1217 1221 if self._is_redhat_based(): 1218 return 'fedora-httpd .conf' # This is an Apache 2.x config file despite the naming.1222 return 'fedora-httpd-' + self._apache_version() + '.conf' 1219 1223 if self._is_debian_based(): 1220 1224 return 'apache2-debian-httpd.conf' -
trunk/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py
r138314 r139071 590 590 591 591 port._is_redhat_based = lambda: True 592 self._assert_config_file_for_platform(port, 'linux2', 'fedora-httpd.conf') 592 port._apache_version = lambda: '2.2' 593 self._assert_config_file_for_platform(port, 'linux2', 'fedora-httpd-2.2.conf') 593 594 594 595 port = TestWebKitPort()
Note: See TracChangeset
for help on using the changeset viewer.