Currently the API is exposed in secure contexts and only to Window. I also can't think of a reason why you'd need this API in service or web workers? It's also worth taking a moment to consider if navigator is the correct place to put this?