On Fri, Jan 8, 2010 at 5:15 AM, Paweł Hajdan, Jr. <phajdan...@chromium.org>wrote:
> We have http://crbug.com/4436, and the problem is that if you launch > chrome index.html (with index.html in the current directory) it will > try to navigate to http://index.html/ instead. This behavior is useful > for cases like chrome www.google.com, and generally I don't see a good > solution to this issue other than WontFix. Other shell launchers are > expected to pass a full path I think. > > explorer.exe behaves in a reverse way (www.google.com fails, > index.html succeeds). > > In firefox both local relative paths and urls without http work. > > What should we do for Chrome? > How about: int fd = open(file_or_url, O_RDONLY); if (fd >= 0) { close(fd); OpenLocalFile(file_or_url); } else { OpenURL(file_or_url); } Antoine > -- > Chromium Developers mailing list: chromium-dev@googlegroups.com > View archives, change email options, or unsubscribe: > http://groups.google.com/group/chromium-dev >
-- Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev