mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/ServiceWorker: Adjust comments for ServiceWorkerRecord
This commit is contained in:
parent
9bc022c229
commit
73b981e339
Notes:
github-actions[bot]
2025-04-21 21:27:53 +00:00
Author: https://github.com/shannonbooth
Commit: 73b981e339
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4279
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 11 additions and 3 deletions
|
@ -17,9 +17,17 @@ namespace Web::ServiceWorker {
|
|||
// FIXME: This should be owned and managed at the user agent level
|
||||
// FIXME: A lot of the fields for this struct actually need to live in the Agent for the service worker in the WebWorker process
|
||||
struct ServiceWorkerRecord {
|
||||
Bindings::ServiceWorkerState state = Bindings::ServiceWorkerState::Parsed; // https://w3c.github.io/ServiceWorker/#dfn-state
|
||||
URL::URL script_url; // https://w3c.github.io/ServiceWorker/#dfn-script-url
|
||||
Bindings::WorkerType worker_type = Bindings::WorkerType::Classic; // https://w3c.github.io/ServiceWorker/#dfn-type
|
||||
// https://w3c.github.io/ServiceWorker/#dfn-state
|
||||
// A service worker has an associated state, which is one of "parsed", "installing", "installed", "activating", "activated", and "redundant". It is initially "parsed".
|
||||
Bindings::ServiceWorkerState state = Bindings::ServiceWorkerState::Parsed;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#dfn-script-url
|
||||
// A service worker has an associated script url (a URL).
|
||||
URL::URL script_url;
|
||||
|
||||
// https://w3c.github.io/ServiceWorker/#dfn-type
|
||||
// A service worker has an associated type which is either "classic" or "module". Unless stated otherwise, it is "classic".
|
||||
Bindings::WorkerType worker_type = Bindings::WorkerType::Classic;
|
||||
|
||||
// FIXME: A lot more fields after this...
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue