Small improvement in HistoryLocation: Use getURL()

From commit message:

```
When trying to subclass HistoryLocation, it's hard to override certain
methods, because they don't use public API of this class for getting
URL. This patch changes all calls to location.pathname into getURL()
calls.
```