Bug 7381 - Missing stylesheets pages render the ErrorDocument's stylesheet instead
Summary: Missing stylesheets pages render the ErrorDocument's stylesheet instead
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 417.x
Hardware: Mac OS X 10.4
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 04:41 PST by Christos Zisopoulos
Modified: 2007-09-20 02:07 PDT (History)
2 users (show)

See Also:


Attachments
test case (1.79 KB, application/zip)
2006-07-28 06:11 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christos Zisopoulos 2006-02-20 04:41:09 PST
Assume the folowing snippet of code in the header of an HTML page.

<link href="/stylesheets/global.css" media="screen" rel="Stylesheet" type="text/css" />
<link href="/stylesheets/scaffold.css" media="screen" rel="Stylesheet" type="text/css" />

If one of the stylesheets is missing and the server returns a 404 error page with a stylesheet, Safari goes ahead and renders the original page but with the styles from the  <style/> tag of the 404 page. 

In my tests this happens when developing with Ruby on Rails 1.0.0 MAX (so lighthttpd 1.4.x) but the server is not to blame, as it reports the correct MIME type of text/html.
Comment 1 Alexey Proskuryakov 2006-07-28 06:11:33 PDT
Created attachment 9739 [details]
test case

I cannot reproduce this issue with the attached test.
Comment 2 Alexey Proskuryakov 2006-10-25 13:15:38 PDT
Closing as INVALID, since the problem is not reproducible. Please re-open it if you have additional information that could help us reproduce it.
Comment 3 Alexey Proskuryakov 2007-09-20 02:07:12 PDT
This has been reported again as bug 15242 - this time, with a reproducible test case.