chromium/third_party/blink/web_tests/external/wpt/html/webappapis/the-windoworworkerglobalscope-mixin/support/WorkerSelfOriginSharedWorker.js

// Post back the location of the worker

onconnect = function(e) {
  e.ports[0].postMessage(self.origin);
}