mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
doc(script): update comments in run_worker_scope
and run_serviceworker_scope
The step numbers changed over time. Note that service workers and non-service workers use different steps defined in different specifications.
This commit is contained in:
parent
e9af95ec0f
commit
65aa3b0b4d
2 changed files with 3 additions and 3 deletions
|
@ -464,7 +464,7 @@ impl DedicatedWorkerGlobalScope {
|
||||||
.mem_profiler_chan()
|
.mem_profiler_chan()
|
||||||
.run_with_memory_reporting(
|
.run_with_memory_reporting(
|
||||||
|| {
|
|| {
|
||||||
// Step 29, Run the responsible event loop specified
|
// Step 27, Run the responsible event loop specified
|
||||||
// by inside settings until it is destroyed.
|
// by inside settings until it is destroyed.
|
||||||
// The worker processing model remains on this step
|
// The worker processing model remains on this step
|
||||||
// until the event loop is destroyed,
|
// until the event loop is destroyed,
|
||||||
|
|
|
@ -280,7 +280,7 @@ impl ServiceWorkerGlobalScope {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
// https://html.spec.whatwg.org/multipage/#run-a-worker
|
// https://w3c.github.io/ServiceWorker/#run-service-worker-algorithm
|
||||||
pub fn run_serviceworker_scope(
|
pub fn run_serviceworker_scope(
|
||||||
scope_things: ScopeThings,
|
scope_things: ScopeThings,
|
||||||
own_sender: Sender<ServiceWorkerScriptMsg>,
|
own_sender: Sender<ServiceWorkerScriptMsg>,
|
||||||
|
@ -382,7 +382,7 @@ impl ServiceWorkerGlobalScope {
|
||||||
.mem_profiler_chan()
|
.mem_profiler_chan()
|
||||||
.run_with_memory_reporting(
|
.run_with_memory_reporting(
|
||||||
|| {
|
|| {
|
||||||
// Step 29, Run the responsible event loop specified
|
// Step 18, Run the responsible event loop specified
|
||||||
// by inside settings until it is destroyed.
|
// by inside settings until it is destroyed.
|
||||||
// The worker processing model remains on this step
|
// The worker processing model remains on this step
|
||||||
// until the event loop is destroyed,
|
// until the event loop is destroyed,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue