mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implement window.location.reload()
This commit is contained in:
parent
b737bd322e
commit
c7e5e785b2
2 changed files with 6 additions and 1 deletions
|
@ -59,6 +59,11 @@ impl LocationMethods for Location {
|
|||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-location-reload
|
||||
fn Reload(&self) {
|
||||
self.window.root().load_url(self.get_url());
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-urlutils-hash
|
||||
fn Hash(&self) -> USVString {
|
||||
UrlHelper::Hash(&self.get_url())
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
/*[Unforgeable]*/ interface Location {
|
||||
void assign(DOMString url);
|
||||
//void replace(DOMString url);
|
||||
//void reload();
|
||||
void reload();
|
||||
};
|
||||
Location implements URLUtils;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue