Skip to content

Commit

Permalink
Mark ServiceWorkerContainer.p.onerror deprecated (#4703)
Browse files Browse the repository at this point in the history
w3c/ServiceWorker@c240d9d
(w3c/ServiceWorker#912) dropped
ServiceWorkerContainer.p.onerror from the spec. So this
change marks it deprecated.

Related BCD change: mdn/browser-compat-data#10278
  • Loading branch information
sideshowbarker authored May 5, 2021
1 parent 188cf6a commit 6ca4f03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions files/en-us/web/api/serviceworkercontainer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ <h2 id="Events">Events</h2>
<dd>Occurs when the document's associated {{domxref("ServiceWorkerRegistration")}} acquires a new {{domxref("ServiceWorkerRegistration.active","active")}} worker.<br>
Also available via the {{domxref("ServiceWorkerContainer.oncontrollerchange")}} property.</dd>
<dt><code>error</code></dt>
<dd>Fired whenever an error occurs in the associated service workers.<br>
Also available via the {{domxref("ServiceWorkerContainer.onerror")}} property.</dd>
<dd>Fired whenever an error occurs in the associated service workers.</dd>
<dt><code><a href="/en-US/docs/Web/API/ServiceWorkerContainer/message_event">message</a></code></dt>
<dd>Occurs when incoming messages are received by the {{domxref("ServiceWorkerContainer")}} object (e.g. via a {{domxref("MessagePort.postMessage()")}} call.)<br>
Also available via the {{domxref("ServiceWorkerContainer.onmessage")}} property.</dd>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- ServiceWorkerContainer
- onerror
---
<p>{{APIRef("Service Workers API")}}{{ SeeCompatTable() }}</p>
<p>{{APIRef("Service Workers API")}}{{Deprecated_header}}</p>

<p>The <strong><code>onerror</code></strong> property of the
{{domxref("ServiceWorkerContainer")}} interface is an event handler fired whenever an
Expand Down

0 comments on commit 6ca4f03

Please sign in to comment.