[Webkit-unassigned] [Bug 14831] Status code of local failed GET request is different on Mac and Windows
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 19 06:19:56 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=14831
bedney at technicalpursuit.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bedney at technicalpursuit.com
------- Comment #6 from bedney at technicalpursuit.com 2008-06-19 06:19 PDT -------
This was not a problem for me for the Safari 3.X series (i.e. the same
'failure' code was being used for both plaforms), but is now definitely a
problem for the Safari 4.X developer preview. Safari/Windows is just returning
a 404, whether the directory exists or not (I'm using this for 'directory
existence detection').
Here is what I would propose (and which should obviously work cross-platform):
1. If the file:// URL points to a file and the file exists, the status code
should return 200. The responseText/responseXML may very well be empty or null
(meaning no content). If the file doesn't exist, it returns 404.
2. If the file://URL points to a directory and the directory exists (even if it
has no files within it), the status code should return 200. If the directory
doesn't exist, it returns 404.
Thoughts?
Cheers,
- Bill
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list