chromium/third_party/blink/web_tests/http/tests/security/secureContexts/resources/post-securecontext-shared.js

self.onconnect = e => {
    e.ports[0].postMessage({ "isSecureContext": self.isSecureContext });
};