- From: Tony Trinh <notifications@github.com>
- Date: Mon, 13 Jun 2016 22:33:38 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc:
- Message-ID: <slightlyoff/ServiceWorker/issues/912@github.com>
I think the `ServiceWorkerContainer` spec should not list event handlers. [*Service Workers 1*](https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#service-worker-container-event-handlers) and [MDN](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror) list `onerror` as an attribute of `ServiceWorkerContainer`. My tests show that Chrome 51/53, Firefox 47, and Opera 38/39 do not actually support `navigator.serviceWorker.onerror`, contrary to the *Browser Compatibility* table in MDN; and that `onerror` is only available from within a service worker object. I later discovered a [comment in #199] (https://github.com/slightlyoff/ServiceWorker/issues/104#issuecomment-39488270) from @jakearchibald and a [comment in #198](https://github.com/slightlyoff/ServiceWorker/issues/198#issuecomment-39410922) from @kinu that indicate `onerror` was moved from the container, so I'm assuming the `ServiceWorkerContainer` spec just needs to be updated. Correct? [StackOverflow ref](http://stackoverflow.com/a/37784386/6277151) --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/912
Received on Tuesday, 14 June 2016 05:34:13 UTC