[Webkit-unassigned] [Bug 86344] [BlackBerry] xhr request to non existent file response is 0 and not 404.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 14 05:04:21 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86344
--- Comment #5 from Jason <jason.liu at torchmobile.com.cn> 2012-05-14 05:03:25 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (From update of attachment 141678 [details] [details] [details])
> > > 1) Why are you changing a platform independent test and then a platform specific file?
> >
> > This test case is written by myself for "[BlackBerry] Missing readyState 2 when a XMLHttpRequest calls xmlhttp.open("HEAD","notExist.html",true).
> > https://bugs.webkit.org/show_bug.cgi?id=83866"
> >
> > And I think this bug is similar to 83866. Just another point to fix.
>
> Ok, so the testcase was not quite correct to begin with. You should maybe be more clear in your commit log.
>
> > > 2) Should this really be special cased to HEAD? Seems like a hack around a deeper problem. Is the issue really just that HEAD returns no data? Is this a CURL quirk?
> >
> > If it is not HEAD, we can receive data and the response will be sent to webkit.
>
> Is HEAD the only method that will behave like this? It still feels odd to me. What if HTTP GET or POST truly returns an empty file?
If HTTP GET/POST returns an empty file, status code will be 2xx.
And isError() will be false, So we can send response correctly.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list