aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/dedicatedworkerglobalscope.rs
Commit message (Collapse)AuthorAgeFilesLines
* Cargoify servoJack Moffitt2014-09-081-200/+0
|
* Structured clone the argument to DedicatedWorkerGlobalScope.postMessage.Ms2ger2014-08-141-7/+13
|
* Structured clone the argument to Worker.postMessage.Ms2ger2014-08-141-2/+14
|
* 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-17/+19
| | | | | | | | | 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-1/+13
|
* Store a pointer to the Worker in the DedicatedWorkerGlobalScope.Ms2ger2014-08-121-4/+30
|
* Pass the script channel to DedicatedWorkerGlobalScope::run_worker_scope ↵Ms2ger2014-08-121-4/+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-10/+15
| | | | | This ensures that XHR callbacks for XHR objects in workers are called on the worker thread rather than the main thread.
* Use TaskBuilder to spawn worker threads.Ms2ger2014-08-041-7/+6
|
* Start dogfooding rust-url. Fix #1673.Simon Sapin2014-07-211-4/+5
|
* Implement Worker.postMessage.Ms2ger2014-07-181-4/+29
|
* Store the ScriptChan in the WorkerGlobalScope.Ms2ger2014-07-171-7/+12
| | | | This is necessary to make XMLHttpRequest and postMessage work.
* Store the worker's URL in the WorkerGlobalScope.Ms2ger2014-07-171-5/+7
| | | | This will be necessary to resolve relative URLs in the worker.
* Implement a resource_task getter on GlobalRef.Ms2ger2014-07-171-1/+2
| | | | This is needed to fetch resources on all threads.
* Store the ResourceTask on the WorkerGlobalScope.Ms2ger2014-07-171-4/+10
| | | | | This is necessary to load dependent resources, such as through new Worker(), importScripts, XHR, ...
* Inline DedicatedWorkerGlobalScope::init.Ms2ger2014-07-171-11/+3
| | | | This was an unnecessary abstraction.
* Move the code to start the worker into ↵Ms2ger2014-07-171-1/+35
| | | | | | DedicatedWorkerGlobalScope::run_worker_scope. This is somewhat cleaner than keeping it all in the Worker constructor.
* Store the JSContext in a field on the worker global scope.Ms2ger2014-07-151-9/+11
|
* Load scripts in workers.Ms2ger2014-07-151-0/+10
|
* Add a constructor for DedicatedWorkerGlobalScope.Ms2ger2014-07-151-0/+17
|
* Implement stub classes for WorkerGlobalScope and DedicatedWorkerGlobalScope.Ms2ger2014-07-151-0/+33
Part of #2811.