Skip to content

Commit dd45133

Browse files
[ServiceWorker] 各種更新
Editorial: remove unnecessary CacheStorage global object definition w3c/ServiceWorker@1fdb546 Fix: Align Cache API definitions with Storage spec w3c/ServiceWorker@e3403ed Handle Fetch: Use correct storage key for subresource requests w3c/ServiceWorker@3ab2b8a
1 parent bed9970 commit dd45133

File tree

1 file changed

+45
-51
lines changed

1 file changed

+45
-51
lines changed

service-workers-ja.html

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@
254254

255255
●●options
256256

257-
spec_date:2025-09-04
258-
trans_update:2025-09-05
257+
spec_date:2025-09-11
258+
trans_update:2025-09-16
259259
source_checked:250530
260260
original_url:https://w3c.github.io/ServiceWorker/
261261
abbr_url:SW1
@@ -803,14 +803,9 @@
803803

804804
登録~map:#dfn-scope-to-registration-map
805805
名前から~cacheへの~map:#dfn-name-to-cache-map
806-
関連な名前から~cacheへの~map:#dfn-relevant-name-to-cache-map
806+
関連な名前から~cacheへの~map:#relevant-name-to-cache-map
807807
~scopeから~job~queueへの~map:#dfn-scope-to-job-queue-map
808808

809-
名前→~cache~map:#dfn-name-to-cache-map
810-
関連な名前→~cache~map:#dfn-relevant-name-to-cache-map
811-
~scope→~job~queue~map:#dfn-scope-to-job-queue-map
812-
813-
大域~obj:#cachestorage-global-object
814809
~fetchを取扱う~task~source:#dfn-handle-fetch-task-source
815810
機能的~eventを取扱う~task~source:#dfn-handle-functional-event-task-source
816811

@@ -1142,6 +1137,7 @@
11421137
関連な大域~obj:~WAPI#concept-relevant-global
11431138
関連な設定群~obj:~WAPI#relevant-settings-object
11441139
古典~script:~WAPI#classic-script
1140+
大域~obj:~WAPI#global-object → enV.大域~obj
11451141
現在の大域~obj:~WAPI#current-global-object
11461142
環境:~WAPI#environment
11471143
環境~設定群~obj:~WAPI#environment-settings-object
@@ -2000,6 +1996,7 @@
20001996
%結果:result
20011997
%深さ:depth
20021998
%~network~error:networkError
1999+
%環境:environment
20032000

20042001
TODO
20052002
*%~custom~fetch応答の処理n:processCustomFetchResponse
@@ -3349,32 +3346,33 @@ <h4 title="The worker client case">2.5.2. ~worker~client事例</h4>
33493346
</p>
33503347

33513348
<p>
3352-
`~worker~client$が作成されるときの,`作動中な~sw$enVは、
3349+
`~worker~client$ %~client が作成されたとき,
3350+
%~client にて`作動中な~sw$enVは、
33533351
次に従って設定される:
33543352
33553353
When the worker client is created:
33563354
</p>
33573355

33583356
<ol>
33593357
<li>
3360-
その`~fetch$`~HTTP~fetch$を経由しているならば
3358+
当の`~fetch$`~HTTP~fetch$を経由しているならば
33613359
33623360
`合致する~sw登録$【の`作動中な~worker$swrに設定されることになる~sw?】
33633361
33643362
When the fetch is routed through HTTP fetch, the worker client’s active service worker is set to the result of the service worker registration matching.\
33653363
</li>
33663364
<li>
3367-
他の場合,`~worker~client$の`生成元$clは`不透明な生成元$であるならば
3365+
他の場合, %~client の`生成元$clは`不透明な生成元$であるならば
33683366
33693367
~NULL
33703368
33713369
Otherwise, if the worker client’s origin is an opaque origin,\
33723370
</li>
33733371
<li>
33743372
他の場合,[
3375-
その`要請$の`~URL$rqは`~blob~URL$である
3373+
当の`要請$の`~URL$rqは`~blob~URL$である
33763374
]~AND[
3377-
( `~worker~client$の`生成元$cl, `~worker~client$の`大域~obj$の`所有者~集合$の最後の`~item$の`生成元$ )
3375+
( %~client の`生成元$cl, %~client の`大域~obj$enV【!`大域~obj$】の`所有者~集合$を成す最後の`~item$の`生成元$ )
33783376
は`同一-生成元$でない
33793377
]ならば
33803378
@@ -3385,7 +3383,7 @@ <h4 title="The worker client case">2.5.2. ~worker~client事例</h4>
33853383
<li>
33863384
他の場合
33873385
3388-
`~worker~client$の`大域~obj$の`所有者~集合$の最後の`~item$の`環境~設定群~obj$にて`作動中な~sw$enV
3386+
%~client の`大域~obj$enV【!`大域~obj$】の`所有者~集合$を成す最後の`~item$の`環境~設定群~obj$にて`作動中な~sw$enV
33893387
33903388
Otherwise, it is set to the active service worker of the environment settings object of the last item in the worker client’s global object’s owner set.
33913389
</li>
@@ -8579,27 +8577,15 @@ <h3 title="Constructs">5.1. 構成子</h3>
85798577
</p>
85808578

85818579
<p>
8582-
各`~storage~key$には、
8583-
ある`名前から~cacheへの~map$が結付けられる。
8584-
8585-
Each storage key has an associated name to cache map.
8586-
</p>
8587-
8588-
<p>
8589-
~obj %O に
8580+
`CacheStorage$I ~obj %O に
85908581
`関連な名前から~cacheへの~map@
85918582
は、
8592-
次の結果に結付けられた`名前から~cacheへの~map$を指す。
8583+
次の結果に結付けられた`名前から~cacheへの~map$である
85938584
8594-
`~storage~keyを得する$( %O に`関連な設定群~obj$【!%O に結付けられた`大域~obj$の`環境~設定群~obj$】 )
8585+
`局所~storage瓶~mapを得する$( %O に`関連な設定群~obj$, `caches^l )
85958586
8596-
The relevant name to cache map is the name to cache map associated with the storage key obtained from this’s associated global object’s environment settings object.
8597-
</p>
8598-
8599-
<p class="trans-note">【
8600-
%O に該当するものは、
8601-
この仕様においては `CacheStorage$I ~objしかない。
8602-
】</p>
8587+
The relevant name to cache map for a CacheStorage object is the name to cache map associated with the result of running obtain a local storage bottle map with the object’s relevant settings object and "caches".
8588+
</p>
86038589

86048590
</section>
86058591
<section id="cache-lifetimes">
@@ -10181,36 +10167,30 @@ <h3>5.5. `CacheStorage^I</h3>
1018110167
</p>
1018210168

1018310169
<p>
10184-
~UAは
10170+
~UAは
1018510171
`Window$I / `WorkerGlobalScope$I
10186-
]大域~obj %G を作成したときは、
10187-
`CacheStorage$I ~obj %C を作成して,それに %G を結付けるモノトスル。
10188-
この %G を指して,単に %C の
10189-
`大域~obj@
10190-
と称される。
10172+
]大域~objを作成したときは,
10173+
`CacheStorage$I ~objを作成するモノトスル。
1019110174
10192-
The user agent must create a CacheStorage object when a Window object or a WorkerGlobalScope object is created and associate it with that global object.
10175+
The user agent must create a CacheStorage object when a Window object or a WorkerGlobalScope object is created.
1019310176
</p>
1019410177

1019510178
<p>
10196-
`CacheStorage$I ~objは、
10197-
その`大域~obj$の`環境~設定群~obj$†の`生成元$enVに属する`名前から~cacheへの~map$††を表現する。
10179+
`CacheStorage$I ~obj %O は、
10180+
次の結果に結付けられた`名前から~cacheへの~map$を表現する
10181+
10182+
`局所~storage瓶~mapを得する$( %O に`関連な設定群~obj$, `caches^l )
10183+
◎終
1019810184
いくつかの文書や~workerにまたがって、
10199-
同時に複数の `CacheStorage$I ~objが 同じ`名前から~cacheへの~map$を表現し得る†††。
10185+
同時に複数の `CacheStorage$I ~objに同じ`名前から~cacheへの~map$が結付けられ得る†。
1020010186
10201-
A CacheStorage object represents a name to cache map of its associated global object’s environment settings object’s origin. Multiple separate objects implementing the CacheStorage interface across documents and workers can all be associated with the same name to cache map simultaneously.
10187+
A CacheStorage object represents the name to cache map associated with the result of running obtain a local storage bottle map with its relevant settings object and "caches". Multiple separate objects implementing the CacheStorage interface across documents and workers can all be associated with the same name to cache map simultaneously.
1020210188
</p>
1020310189

1020410190
<p class="trans-note">【†
10205-
すなわち、
10206-
`関連な設定群~obj$。
10207-
】【††
10208-
すなわち、
10209-
`関連な名前から~cacheへの~map$。
10210-
】【†††
1021110191
が、
1021210192
各 `大域~obj$enVごとに, 1 個に限られる
10213-
— この~objを返す `caches$n 属性は [SameObject] なので
10193+
— この~objを返す `caches$n 属性は [SameObject] を伴うので
1021410194
】</p>
1021510195

1021610196
`CacheStorage^I0
@@ -15104,9 +15084,23 @@ <h3 title="Handle Fetch">`~fetchを取扱う@</h3>
1510415084
Set timingInfo’s worker cache lookup start to the coarsened shared current time given useHighResPerformanceTimers.
1510515085
</li>
1510615086
<li>
15107-
%~cache群 ~LET `局所~storage瓶~mapを得する$( %予約-済み~client, `caches^l )
15087+
%環境 ~LET %要請 に応じて
15088+
⇒#
15089+
`非~下位資源~要請$であるならば %予約-済み~client /
15090+
~ELSE_ %~client
15091+
15092+
Let environment be null.
15093+
15094+
If request is a non-subresource request, then:
15095+
• Set environment to reservedClient.
15096+
15097+
Else:
15098+
• Set environment to client.
15099+
</li>
15100+
<li>
15101+
%~cache群 ~LET `局所~storage瓶~mapを得する$( %環境, `caches^l )
1510815102
15109-
Let caches be the result of running obtain a local storage bottle map with reservedClient and "caches".
15103+
Let caches be the result of running obtain a local storage bottle map with environment and "caches".
1511015104
</li>
1511115105
<li>
1511215106
<p>

0 commit comments

Comments
 (0)