>  It should probably return an absolute `file:` URI here.

This should be done in a different pull request. It's unrelated to this change.