diff --git a/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.https.html b/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.https.html new file mode 100644 index 00000000000000..399820dd2c313b --- /dev/null +++ b/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.https.html @@ -0,0 +1,32 @@ + + + +Service Worker: isSecureContext + + + + + + + + diff --git a/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.serviceworker.js b/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.serviceworker.js new file mode 100644 index 00000000000000..5033594e34ba75 --- /dev/null +++ b/service-workers/service-worker/ServiceWorkerGlobalScope/isSecureContext.serviceworker.js @@ -0,0 +1,5 @@ +importScripts("/resources/testharness.js"); + +test(() => { + assert_true(self.isSecureContext, true); +}, "isSecureContext");