diff --git a/testing/web-platform/tests/cookie-store/cookieStoreManager_getSubscriptions_multiple.tentative.https.any.js b/testing/web-platform/tests/cookie-store/cookieStoreManager_getSubscriptions_multiple.tentative.https.any.js index d8c233e2e5f5e..89b90d91e2ed2 100644 --- a/testing/web-platform/tests/cookie-store/cookieStoreManager_getSubscriptions_multiple.tentative.https.any.js +++ b/testing/web-platform/tests/cookie-store/cookieStoreManager_getSubscriptions_multiple.tentative.https.any.js @@ -355,6 +355,38 @@ add_cleanup ) = > +{ +/ +/ +For +non +- +ServiceWorker +environments +registration +. +unregister +( +) +cleans +up +/ +/ +cookie +subscriptions +. +if +( +self +. +GLOBAL +. +isWorker +( +) +) +{ +return registration . cookies @@ -363,6 +395,9 @@ unsubscribe ( subscriptions ) +; +} +} ) ; } @@ -419,6 +454,38 @@ add_cleanup ) = > +{ +/ +/ +For +non +- +ServiceWorker +environments +registration +. +unregister +( +) +cleans +up +/ +/ +cookie +subscriptions +. +if +( +self +. +GLOBAL +. +isWorker +( +) +) +{ +return registration . cookies @@ -427,6 +494,9 @@ unsubscribe ( subscriptions ) +; +} +} ) ; }