Re: [ServiceWorker] Make secure context requirements more explicit (#754)

I came up with a question while implementing this change:
Is `ServiceWorkerContainer.controller` returning **null** instead of undefined in non-secure context okay? If we'd want to return undefined, the IDL type should be changed from ServiceWorker? to any and some custom getter should be written for V8 in Blink case. If null in the script surface is fine, I'd suggest using null here. Or, I wonder if throwing a SecurityError exception would be better than using null?

/cc @slightlyoff @annevk @jakearchibald @domenic

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/754#issuecomment-148027162

Received on Wednesday, 14 October 2015 11:55:05 UTC