diff options
author | yvt <i@yvt.jp> | 2021-07-13 01:12:40 +0900 |
---|---|---|
committer | yvt <i@yvt.jp> | 2021-07-13 09:31:17 +0900 |
commit | 65aa3b0b4dc5fc9ad616860c47b8013fbf6508c4 (patch) | |
tree | 6cb126fc00c0bb18a8735ca936bb44ec5c994555 /components/script/dom/serviceworkerglobalscope.rs | |
parent | e9af95ec0fab71e03ec96041a0d7e7863b572425 (diff) | |
download | servo-65aa3b0b4dc5fc9ad616860c47b8013fbf6508c4.tar.gz servo-65aa3b0b4dc5fc9ad616860c47b8013fbf6508c4.zip |
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.
Diffstat (limited to 'components/script/dom/serviceworkerglobalscope.rs')
-rw-r--r-- | components/script/dom/serviceworkerglobalscope.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/serviceworkerglobalscope.rs b/components/script/dom/serviceworkerglobalscope.rs index 0c5a37709c4..911c635e38d 100644 --- a/components/script/dom/serviceworkerglobalscope.rs +++ b/components/script/dom/serviceworkerglobalscope.rs @@ -280,7 +280,7 @@ impl ServiceWorkerGlobalScope { } #[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( scope_things: ScopeThings, own_sender: Sender<ServiceWorkerScriptMsg>, @@ -382,7 +382,7 @@ impl ServiceWorkerGlobalScope { .mem_profiler_chan() .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. // The worker processing model remains on this step // until the event loop is destroyed, |