Bug 25326 - Webkit treats 404 server response as HTML
Summary: Webkit treats 404 server response as HTML
Status: RESOLVED DUPLICATE of bug 15242
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 09:12 PDT by Andrew Kulinich
Modified: 2009-04-23 01:58 PDT (History)
1 user (show)

See Also:


Attachments
web page with reference to missing CSS file (205 bytes, text/plain)
2009-04-22 09:13 PDT, Andrew Kulinich
no flags Details
server response for 404 error (116 bytes, text/plain)
2009-04-22 09:14 PDT, Andrew Kulinich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Kulinich 2009-04-22 09:12:20 PDT
If page includes some CSS file and it is missing - webkit treats 404 server response (usually this is HTML page with some CSS inside) as CSS. So styles from 404 page are applied to main page.
I've attached two files - one is common html page which includes missing CSS file using LINK tag. Other - is server response for 404 error (in my httpd.conf I have 
	ErrorDocument 404 /404.html
)
So if you will try to open that missing css - you will see 404.html as server response (HTTP code 404 is returned)
Comment 1 Andrew Kulinich 2009-04-22 09:13:12 PDT
Created attachment 29681 [details]
web page with reference to missing CSS file
Comment 2 Andrew Kulinich 2009-04-22 09:14:45 PDT
Created attachment 29682 [details]
server response for 404 error

put this page somewhere at your web server and put
	ErrorDocument 404 /404.html
into your web server config. replace "/404.html" with reference to current file.
Comment 3 Alexey Proskuryakov 2009-04-23 01:44:44 PDT
Duplicate of bug 15242?
Comment 4 Andrew Kulinich 2009-04-23 01:58:21 PDT

*** This bug has been marked as a duplicate of 15242 ***