webapi: experimental (and useless, for now) ServiceWorker

This adds the shell for ServiceWorker, behind
`--experimental-features serviceworker`.

It's pretty useless as-is. We don't have the CacheStorage API (next) and don't
have the fetch interceptor (next next). But as-is, the change is quite big but
thankfully largely isolated.
This commit is contained in:
Karl Seguin committed 2026-09-16 17:49:07 +08:00
1 parent afbc8378b1
commit dc1ae129e3
27 files changed
+2063 -58

No files matched your search

+2 -1
View File
@@ -245,8 +245,9 @@ pub const LoadResources = packed struct(u4) {
stylesheet: bool = false,
};
const ExperimentalFeatures = packed struct(u1) {
pub const ExperimentalFeatures = packed struct(u2) {
cors: bool = false,
serviceworker: bool = false,
};
/// Common CLI args.