[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
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
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
Or, is the problem further up, with ResourceLoader or something even higher?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev