mirror of
https://github.com/servo/servo.git
synced 2025-10-10 13:30:20 +01:00
Add url getter to Page and fix users of Page url with it.(fixes #1762)
This commit is contained in:
parent
94a12469f0
commit
8fc5ba5dc6
5 changed files with 13 additions and 7 deletions
|
@ -44,7 +44,7 @@ impl Location {
|
|||
}
|
||||
|
||||
pub fn Href(&self) -> DOMString {
|
||||
self.page.url.get_ref().first().to_str()
|
||||
self.page.get_url().to_str()
|
||||
}
|
||||
|
||||
pub fn SetHref(&self, _href: DOMString) -> Fallible<()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue