Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upXHR timeouts use same abstraction as scripts timers. (fixes #3396) #8168
Conversation
|
Review status: 0 of 6 files reviewed at latest revision, 3 unresolved discussions, some commit checks pending. components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): components/script/timers.rs, line 189 [r1] (raw file): Comments from the review on Reviewable.io |
|
Not a proper review, but some questions and a couple of doc nits. +S-needs-code-changes Review status: 0 of 6 files reviewed at latest revision, 6 unresolved discussions, all commit checks successful. components/script/dom/bindings/global.rs, line 201 [r1] (raw file): components/script/dom/bindings/global.rs, line 210 [r1] (raw file): components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): components/script/dom/xmlhttprequest.rs, line 969 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): pub trait ScheduledCallback: Clone + JSTraceable + HeapSizeOf {
fn invoke(self);
}Comments from the review on Reviewable.io |
|
Thanks for the input. =) Review status: 0 of 6 files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): components/script/dom/xmlhttprequest.rs, line 969 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 0 of 6 files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. components/script/timers.rs, line 124 [r1] (raw file): At a slightly higher level, this shouldn't really need to implement clone: a oneshot timer can only execute once, so the callback never actually needs to be cloned. It should be possible to encode this into the type system. Comments from the review on Reviewable.io |
|
Review status: 0 of 6 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. components/script/timers.rs, line 124 [r1] (raw file):
Thanks, this confirms my suspcicion. Also, I just realized that
The cloning is currently necessary because Comments from the review on Reviewable.io |
|
|
|
-S-awaiting-review +S-needs-code-changes Reviewed 6 of 6 files at r1. components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): components/script/dom/xmlhttprequest.rs, line 969 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): components/script/timers.rs, line 189 [r1] (raw file): Comments from the review on Reviewable.io |
|
Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
|
Review status: 5 of 6 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): (If there's a reference explaining the pointer types in more detail than Using DOM types, I'd appreciate a link.) components/script/dom/xmlhttprequest.rs, line 969 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): components/script/timers.rs, line 189 [r1] (raw file): Comments from the review on Reviewable.io |
|
Let's rebase and squash this :) Reviewed 1 of 1 files at r3. components/script/dom/xmlhttprequest.rs, line 963 [r1] (raw file): components/script/dom/xmlhttprequest.rs, line 969 [r1] (raw file): components/script/timers.rs, line 124 [r1] (raw file): components/script/timers.rs, line 189 [r1] (raw file): Comments from the review on Reviewable.io |
0b1814d
to
d27a324
|
@bors-servo: r+ |
|
|
XHR timeouts use same abstraction as scripts timers. (fixes #3396) Alright, this is it. Finally the fix for #3396. :D I'll add two comments via reviewable in a second. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8168) <!-- Reviewable:end -->
|
|
Execute XHR timeout callbacks directly. (Fixes #8468.) This is a fix for #8468. Currently XHR timeouts schedule themselves for execution via `CommonScriptMsg::RunnableMsg`s. This was necessary when these timeouts used a separate thread to schedule themselves. Now it's a potential race that should have been eliminated as part of #8168. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8475) <!-- Reviewable:end -->
benschulz commentedOct 23, 2015
Alright, this is it. Finally the fix for #3396. :D
I'll add two comments via reviewable in a second.