[webkit-dev] Platform network did.* semantics for status 404 with HTML body

Josh Chia (谢任中) joshchia at gmail.com
Thu Sep 4 15:28:42 PDT 2008


I have an network platform implementation (ResourceHandle) that I'm not sure
is doing the right thing.

In particular, a.html has a <script> tag that references
http://missing/missing.js.

missing.js is non-existent and the response status is 404, but the response
has a HTML body.

When opening a.html, WebKit actually tries to parse the resource for
missing.js, which is HTML, not Javascript.

This behavior is probably wrong, but I don't know which component is broken,
i.e. whether my network code is communicating the wrong thing to the
ResourceHandleClient, or someone further up is failing to catch the bad
response status and prevent parsing.

So, if I get a response with 404 (or other error codes) plus a body, what
does my network code need to do?  Which of the did.* functions should I
call?

Or, is the problem further up, with ResourceLoader or something even higher?

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080904/d67bb10d/attachment.html 


More information about the webkit-dev mailing list