I'm not sure how this is supposed to work. When requesting http://localhost:8080, Fossil sends a redirect to http://localhost/doc/tip/www/index.wiki (the port is gone). However, other browsers seems to get away with this.
Manually loading the page at http://localhost:8080/doc/tip/www/index.wiki exposes more problems, however, as all resources are referenced using relative URIs ("/path"), and this time it's WebKit failing to add the port to the requests. I will have a look. I noticed Fossil uses the <base/>
html tag, this time with the proper port. So there's no reason WebKit gets things wrong here.