a77e085952
Issue #1334 The problem was that there were too few slashes. On Linux, absolute paths start with /, so file:// + /home gives file:///home, which is a valid path. On windows however, absolute paths start with a drive letter, so file:// + C:/Users gives file://C:/Users, which is parsed as "host C, path Users", which is why it could be written as file://c/Users (strip out the empty "port"), giving us an invalid path. The solution is to add the third slash in the template, and strip the redundant slash on unix systems. Additionally, this fixes a bug where navigating from '/home/' to the parent directory would give '/home' instead of '/' |
||
---|---|---|
.. | ||
network | ||
__init__.py | ||
adblock.py | ||
cache.py | ||
commands.py | ||
cookies.py | ||
downloads.py | ||
downloadview.py | ||
hints.py | ||
history.py | ||
http.py | ||
inspector.py | ||
mhtml.py | ||
pdfjs.py | ||
rfc6266.py | ||
signalfilter.py | ||
tabhistory.py | ||
urlmarks.py | ||
webelem.py | ||
webpage.py | ||
webview.py |