Repository navigation
Implement location.reload() - #7064
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @larsbergstrom (or someone else) soon. |
227c3a6 to
2379d19
Compare
|
I'm not sure I want to add more naive navigation code, we already have way to much of that. |
|
@Ms2ger said we should wait until he has rewritten all the navigation code |
|
-S-blocked-on-external +S-needs-tests +S-needs-rebase Add some kind of wpt test? Reviewed 2 of 2 files at r1. Comments from the review on Reviewable.io |
|
This is the only way I found to test Also, @Ms2ger r? |
|
LGTM, but avoid new JS features like |
There was a problem hiding this comment.
Sorry I missed this last time. You're creating multiple tests with the same name, which would be painful if we failed one of them. Please just put everything in one async_test, like:
async_test(function() {
var url = new URL("./location_reload-iframe.html", window.location).href;
...
window._ping = this.step_func(function() {
...
assert_equals(url, innerURL, "iframe url");
...
this.done();
});
iframe.src = url;
});|
|
e45456c to
56e45e0
Compare
|
nvm, |
|
@Ms2ger review ping |
|
☔ The latest upstream changes (presumably #7657) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Sorry for the delay here. @bors-servo r+ |
|
📌 Commit e742e7e has been approved by |
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 -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
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::Reloadinstead of usingload_url.Also, what kind of test should I write?