For what it's worth, the way Firefox solves this is:

* Check if the file is an absolute file path
** on Windows, X:\... or \\...
** on Posix, /...
* Otherwise, it's a URL relative to the current working directory
** So index.html resolves using the URL machinery to
file:///c:/cwd/index.html
** while http://www.google.com resolves to itself

This doesn't deal with the case firefox.exe www.google.com (which would try
to resolve as a file), but we decided not to care about this case. We do
have the explicit firefox.exe -url www.google.com which will perform URI
fixup to guess the correct URL.

--BDS
-- 
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to