Repository navigation
Implement user interaction task source - #10714
Conversation
|
Heads up! This PR modifies the following files:
|
| /// `ScriptChan` used to send messages to the event loop of this global's | ||
| /// thread. | ||
| pub fn user_interaction_task_source(&self) -> Box<ScriptChan + Send> { | ||
| pub fn user_interaction_task_source(&self) -> Box<TaskSource<UserInteractionTask> + Send> { |
There was a problem hiding this comment.
Let's remove this function.
There was a problem hiding this comment.
Why though? Is it because workers are not supposed to have the concept of task sources at all? If so, I might just remove all other task sources for GlobalRoot.
There was a problem hiding this comment.
Because workers don't have user interaction. The others are likely used by workers as well as the main thread.
ae394d8 to
0ade487
Compare
0ade487 to
51e7a38
Compare
|
User interaction task source removed from global.rs. |
|
-S-awaiting-review +S-needs-code-changes Reviewed 6 of 8 files at r1, 2 of 2 files at r2. components/script/script_thread.rs, line 927 [r2] (raw file): components/script/dom/htmldetailselement.rs, line 88 [r2] (raw file): components/script/dom/htmlinputelement.rs, line 552 [r2] (raw file): components/script/dom/htmltextareaelement.rs, line 33 [r2] (raw file): components/script/dom/htmltextareaelement.rs, line 266 [r2] (raw file): components/script/dom/htmltextareaelement.rs, line 268 [r2] (raw file): components/script/dom/htmltextareaelement.rs, line 374 [r2] (raw file): components/script/dom/bindings/global.rs, line 29 [r2] (raw file): components/script/task_source/dom_manipulation.rs, line 43 [r2] (raw file): components/script/task_source/user_interaction.rs, line 19 [r2] (raw file): components/script/task_source/user_interaction.rs, line 20 [r2] (raw file): components/script/task_source/user_interaction.rs, line 30 [r2] (raw file): components/script/task_source/user_interaction.rs, line 32 [r2] (raw file): Comments from Reviewable |
51e7a38 to
7557132
Compare
8a69f00 to
6ba0ff4
Compare
|
Review status: 1 of 8 files reviewed at latest revision, 13 unresolved discussions. components/script/task_source/user_interaction.rs, line 19 [r2] (raw file): components/script/task_source/user_interaction.rs, line 20 [r2] (raw file): Comments from Reviewable |
4cadfb5 to
15c98a4
Compare
|
Review status: 1 of 8 files reviewed at latest revision, 13 unresolved discussions. components/script/dom/htmltextareaelement.rs, line 374 [r2] (raw file): components/script/task_source/user_interaction.rs, line 30 [r2] (raw file): Comments from Reviewable |
|
Review status: 1 of 8 files reviewed at latest revision, 13 unresolved discussions. components/script/dom/htmltextareaelement.rs, line 374 [r2] (raw file): Comments from Reviewable |
|
☔ The latest upstream changes (presumably #10866) made this pull request unmergeable. Please resolve the merge conflicts. |
|
📌 Commit 9617ca5 has been approved by |
Implement user interaction task source Part of #7959. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10714) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
|
This is not reassuring, since it looks as if the select event was never fired, causing the tests to time out. |
9617ca5 to
f7d5de9
Compare
|
New code was committed to pull request. |
f7d5de9 to
a1a2b30
Compare
|
New code was committed to pull request. |
a1a2b30 to
f60de52
Compare
|
New code was committed to pull request. |
|
@bors-servo r=Ms2ger |
|
📌 Commit f60de52 has been approved by |
Implement user interaction task source Part of #7959. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10714) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
Part of #7959.
This change is