aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/worker.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-160/+0
|
* Structured clone the argument to DedicatedWorkerGlobalScope.postMessage.Ms2ger2014-08-141-6/+18
|
* Structured clone the argument to Worker.postMessage.Ms2ger2014-08-141-3/+12
|
* Implement {Worker,DedicatedWorkerGlobalScope}.onmessage.Ms2ger2014-08-131-1/+12
|
* Distinguish the sender to the own thread and to the parent thread in ↵Ms2ger2014-08-121-1/+4
| | | | | | | | | DedicatedWorkerGlobalScope. The WorkerGlobalScope stores a reference to the sender for the own thread, to allow passing clones to sub-workers. The DedicatedWorkerGlobalScope additionally keeps a reference to the sender for the (unique) parent thread, to implement postMessage and memory management of the Worker object.
* Implement DedicatedWorkerGlobalScope.postMessage.Ms2ger2014-08-121-0/+10
|
* Store a pointer to the Worker in the DedicatedWorkerGlobalScope.Ms2ger2014-08-121-6/+55
|
* Pass the script channel to DedicatedWorkerGlobalScope::run_worker_scope ↵Ms2ger2014-08-121-2/+3
| | | | | | | | rather than creating it there. This allows us to create the Worker object before calling DedicatedWorkerGlobalScope::run_worker_scope, which is necessary to pass a pointer to the worker to it.
* Give workers their own ScriptChan and use it for postMessage.Ms2ger2014-08-111-9/+9
| | | | | This ensures that XHR callbacks for XHR objects in workers are called on the worker thread rather than the main thread.
* Call the generated rather than the hand-written traits (fixes #2936).Ms2ger2014-07-271-4/+1
|
* Used rust-url directly instead of servo_util::urlSimon Sapin2014-07-211-2/+3
| | | | The latter now only calls the former.
* Implement Worker.postMessage.Ms2ger2014-07-181-6/+18
|
* Store the ScriptChan in the WorkerGlobalScope.Ms2ger2014-07-171-1/+1
| | | | This is necessary to make XMLHttpRequest and postMessage work.
* Implement a resource_task getter on GlobalRef.Ms2ger2014-07-171-1/+1
| | | | This is needed to fetch resources on all threads.
* Move the code to start the worker into ↵Ms2ger2014-07-171-31/+2
| | | | | | DedicatedWorkerGlobalScope::run_worker_scope. This is somewhat cleaner than keeping it all in the Worker constructor.
* Add a spec link for the Worker constructor.Ms2ger2014-07-171-0/+1
|
* Explicitly spawn a native task for workers.Ms2ger2014-07-171-3/+6
|
* Create Worker objects.Ms2ger2014-07-161-4/+18
|
* Store the JSContext in a field on the worker global scope.Ms2ger2014-07-151-3/+3
|
* Load scripts in workers.Ms2ger2014-07-151-2/+24
|
* Spawn a thread for workers.Ms2ger2014-07-151-1/+7
|
* Parse the URL passed to the Worker constructor.Ms2ger2014-07-151-2/+9
|
* Implement a stub Worker interface.Ms2ger2014-07-151-0/+31
Part of #2811.