<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25326</bug_id>
          
          <creation_ts>2009-04-22 09:12:20 -0700</creation_ts>
          <short_desc>Webkit treats 404 server response as HTML</short_desc>
          <delta_ts>2009-04-23 01:58:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15242</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andrew Kulinich">b30r4</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118382</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Kulinich">b30r4</who>
    <bug_when>2009-04-22 09:12:20 -0700</bug_when>
    <thetext>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&apos;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)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118383</commentid>
    <comment_count>1</comment_count>
      <attachid>29681</attachid>
    <who name="Andrew Kulinich">b30r4</who>
    <bug_when>2009-04-22 09:13:12 -0700</bug_when>
    <thetext>Created attachment 29681
web page with reference to missing CSS file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118384</commentid>
    <comment_count>2</comment_count>
      <attachid>29682</attachid>
    <who name="Andrew Kulinich">b30r4</who>
    <bug_when>2009-04-22 09:14:45 -0700</bug_when>
    <thetext>Created attachment 29682
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 &quot;/404.html&quot; with reference to current file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118482</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-04-23 01:44:44 -0700</bug_when>
    <thetext>Duplicate of bug 15242?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118483</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Kulinich">b30r4</who>
    <bug_when>2009-04-23 01:58:21 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 15242 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29681</attachid>
            <date>2009-04-22 09:13:12 -0700</date>
            <delta_ts>2009-04-22 09:13:12 -0700</delta_ts>
            <desc>web page with reference to missing CSS file</desc>
            <filename>webkit.html</filename>
            <type>text/plain</type>
            <size>205</size>
            <attacher name="Andrew Kulinich">b30r4</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8aGVhZD4NCjxsaW5rIHR5cGU9InRleHQvY3NzIiByZWw9InN0eWxlc2hlZXQiIGhy
ZWY9IjQwNC5jc3MiLz4gDQo8dGl0bGU+PC90aXRsZT4NCjwvaGVhZD4NCjxib2R5Pg0KPGgxPmlm
IHRoaXMgdGV4dCBiYWNrZ3JvdW5kIGlzIHJlZCB0aGVuIHN0eWxlIGZyb20gNDA0IHJlc3BvbnNl
IGlzIGFwcGxpZWQ8L2gxPg0KPC9ib2R5Pg0KPC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29682</attachid>
            <date>2009-04-22 09:14:45 -0700</date>
            <delta_ts>2009-04-22 09:14:45 -0700</delta_ts>
            <desc>server response for 404 error</desc>
            <filename>404.html</filename>
            <type>text/plain</type>
            <size>116</size>
            <attacher name="Andrew Kulinich">b30r4</attacher>
            
              <data encoding="base64">PGh0bWw+IA0KPGhlYWQ+IA0KICA8c3R5bGU+IA0KICAgIHAge30NCiAgICBoMSB7YmFja2dyb3Vu
ZC1jb2xvcjogcmVkfQ0KICA8L3N0eWxlPiANCjwvaGVhZD4gDQo8Ym9keT48L2JvZHk+PC9odG1s
PiA=
</data>

          </attachment>
      

    </bug>

</bugzilla>