This repository has been archived by the owner on Jul 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
If you go back while page is loading, progressbar does not stops loading. #1156
Milestone
Comments
Fix would be to just handle goBack / goForward / stop similar to how we handle |
Aren't we supposed to get a |
You tell me :) But it does not seem to, so if you go back while page is loading we wind up with infinitely loading progressbar. |
I'll look. If it doesn't, let's fix it in Servo. |
Not to self: going back too early suspend an already suspended timeline. <iframe mozbrowser="true"></iframe>
<script>
var iframe = document.querySelector("iframe");
var once = (elt, event, cb) => {
var _cb = () => {
elt.removeEventListener(event, _cb);
cb();
}
elt.addEventListener(event, _cb);
}
iframe.addEventListener("mozbrowserloadstart", e => console.log("START"));
iframe.addEventListener("mozbrowserloadend", e => console.log("END"));
once(iframe, "mozbrowserloadend", () => {
once(iframe, "mozbrowserloadstart", () => iframe.goBack());
iframe.src = "http://example.com/test";
});
iframe.src = "http://example.com";
</script> |
We first need this: servo/servo#12784 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is really bad because progressbar will never actually finish loading.
The text was updated successfully, but these errors were encountered: