Bug 864658, URL API should have same properties as window.location, also
fixes bug 861084
Merge pull request #991 from jsantell/url-matches-window-location

Fix Bug 864658, URL API should have same properties as window.location, also fixes bug 861084 (getTLD method) r+=@erikvold