Skip to content

Truly independent web browser

LibWeb: Hide the Service Worker API behind the experimental flag

Aliaksandr Kalenik905778833150
diff --git a/Libraries/LibWeb/HTML/Navigator.idl b/Libraries/LibWeb/HTML/Navigator.idl
index 78f06133997..d6be33ffa4e 100644
--- a/Libraries/LibWeb/HTML/Navigator.idl
+++ b/Libraries/LibWeb/HTML/Navigator.idl
@@ -16,7 +16,7 @@ interface Navigator {
[SameObject] readonly attribute UserActivation userActivation;
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
- [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
+ [SecureContext, SameObject, Experimental] readonly attribute ServiceWorkerContainer serviceWorker;
// https://w3c.github.io/media-capabilities/#dom-navigator-mediacapabilities
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
diff --git a/Libraries/LibWeb/HTML/WorkerNavigator.idl b/Libraries/LibWeb/HTML/WorkerNavigator.idl
index 441d91b49f9..7d798f1fd31 100644
--- a/Libraries/LibWeb/HTML/WorkerNavigator.idl
+++ b/Libraries/LibWeb/HTML/WorkerNavigator.idl
@@ -5,7 +5,7 @@ interface WorkerNavigator {
[SameObject] readonly attribute MediaCapabilities mediaCapabilities;
// https://w3c.github.io/ServiceWorker/#navigator-serviceworker
- [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
+ [SecureContext, SameObject, Experimental] readonly attribute ServiceWorkerContainer serviceWorker;
// https://w3c.github.io/permissions/#navigator-and-workernavigator-extension
[SameObject] readonly attribute Permissions permissions;
diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorker.idl b/Libraries/LibWeb/ServiceWorker/ServiceWorker.idl
index df9fb016e51..68e2d666c35 100644
--- a/Libraries/LibWeb/ServiceWorker/ServiceWorker.idl
+++ b/Libraries/LibWeb/ServiceWorker/ServiceWorker.idl
@@ -1,5 +1,5 @@
// https://w3c.github.io/ServiceWorker/#serviceworker-interface
-[SecureContext, Exposed=(Window,Worker)]
+[SecureContext, Exposed=(Window,Worker), Experimental]
interface ServiceWorker : EventTarget {
readonly attribute USVString scriptURL;
[ImplementedAs=service_worker_state] readonly attribute ServiceWorkerState state;
diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.idl b/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.idl
index 8edbce167f3..b68b25cb7f9 100644
--- a/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.idl
+++ b/Libraries/LibWeb/ServiceWorker/ServiceWorkerContainer.idl
@@ -1,5 +1,5 @@
// https://w3c.github.io/ServiceWorker/#serviceworkercontainer-interface
-[SecureContext, Exposed=(Window,Worker)]
+[SecureContext, Exposed=(Window,Worker), Experimental]
interface ServiceWorkerContainer : EventTarget {
readonly attribute ServiceWorker? controller;
readonly attribute Promise<ServiceWorkerRegistration> ready;
diff --git a/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl b/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl
index 53ded3b2454..6b289338e81 100644
--- a/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl
+++ b/Libraries/LibWeb/ServiceWorker/ServiceWorkerRegistration.idl
@@ -1,5 +1,5 @@
// https://w3c.github.io/ServiceWorker/#serviceworkerregistration-interface
-[SecureContext, Exposed=(Window,Worker)]
+[SecureContext, Exposed=(Window,Worker), Experimental]
interface ServiceWorkerRegistration : EventTarget {
[DirectGetter] readonly attribute ServiceWorker? installing;
[DirectGetter] readonly attribute ServiceWorker? waiting;