diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-08-12 20:27:12 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-08-14 16:28:57 +0200 |
commit | 1dca6146a87a09e6ab0f792debb763af67be41f2 (patch) | |
tree | 91b5646be5b671d716a6d073c48a3c116aea6257 /src/components/script/script_task.rs | |
parent | 251d818de29b97d8cf4a2398661a71c60cd89da8 (diff) | |
download | servo-1dca6146a87a09e6ab0f792debb763af67be41f2.tar.gz servo-1dca6146a87a09e6ab0f792debb763af67be41f2.zip |
Structured clone the argument to Worker.postMessage.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index dd01017ff76..295d0476b31 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -56,6 +56,7 @@ use js::rust::with_compartment; use js; use url::Url; +use libc::size_t; use serialize::{Encoder, Encodable}; use std::any::{Any, AnyRefExt}; use std::cell::RefCell; @@ -86,7 +87,7 @@ pub enum ScriptMsg { XHRProgressMsg(TrustedXHRAddress, XHRProgress), /// Message sent through Worker.postMessage (only dispatched to /// DedicatedWorkerGlobalScope). - DOMMessage(DOMString), + DOMMessage(*mut u64, size_t), /// Posts a message to the Worker object (dispatched to all tasks). WorkerPostMessage(TrustedWorkerAddress, DOMString), /// Releases one reference to the Worker object (dispatched to all tasks). |