Auto merge of #7064 - paulrouget:reload, r=Ms2ger

Implement location.reload()

This is a naive implementation of `window.location.reload()`.
I'd appreciate any feedback.

I was wondering if it'd be better to implement `ConstellationMsg::Reload` instead of using  `load_url`.

Also, what kind of test should I write?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7064)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-09-21 09:03:42 -06:00
commit 4dc986bca3
5 changed files with 57 additions and 2 deletions

View file

@ -7,6 +7,6 @@
/*[Unforgeable]*/ interface Location {
void assign(DOMString url);
//void replace(DOMString url);
//void reload();
void reload();
};
Location implements URLUtils;