diff options
author | Agustin Chiappe Berrini <jnieve@gmail.com> | 2018-09-08 17:01:27 -0400 |
---|---|---|
committer | Agustin Chiappe Berrini <jnieve@gmail.com> | 2018-09-08 17:01:27 -0400 |
commit | 5dd6e21c2e7e1c35a2a4a57812126e28a4b58599 (patch) | |
tree | 5c98fbf6599a4d3ea28f8f37f9c9d2cdd44b9610 /components/script/task_source/mod.rs | |
parent | f7630dad87da33449ce05b5e7a9ef6f747e9531d (diff) | |
download | servo-5dd6e21c2e7e1c35a2a4a57812126e28a4b58599.tar.gz servo-5dd6e21c2e7e1c35a2a4a57812126e28a4b58599.zip |
Add Websocket task source
According to the doc: https://html.spec.whatwg.org/multipage/web-sockets.html#network
The task source for all tasks queued in the websocket section are the
websocket task source, so this commit also updates those references to
use the appropriate one.
Diffstat (limited to 'components/script/task_source/mod.rs')
-rw-r--r-- | components/script/task_source/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/task_source/mod.rs b/components/script/task_source/mod.rs index b64f4b2b991..4dbf0a61c37 100644 --- a/components/script/task_source/mod.rs +++ b/components/script/task_source/mod.rs @@ -10,6 +10,7 @@ pub mod networking; pub mod performance_timeline; pub mod remote_event; pub mod user_interaction; +pub mod websocket; use dom::globalscope::GlobalScope; use enum_iterator::IntoEnumIterator; @@ -28,7 +29,8 @@ pub enum TaskSourceName { Networking, PerformanceTimeline, UserInteraction, - RemoteEvent + RemoteEvent, + Websocket, } impl TaskSourceName { |