MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 469101 of AbstractWorker

  • Revision slug: Web/API/AbstractWorker
  • Revision title: AbstractWorker
  • Revision id: 469101
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ APIRef() }}

Summary

The AbstractWorker interface abstracts properties and methods common to all kind of workers, being {{domxref("Worker")}} or {{domxref("SharedWorker")}}.

Properties

The AbstractWorker interface doesn't inherit any property.

{{domxref("AbstractWorker.onerror")}}
Is an {{ domxref("EventListener") }} that is called whenever an {{domxref("ErrorEvent")}} of type error bubbles through the worker.

Methods

The AbstractWorker interface doesn't implement or inherit any method.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "#the-abstractworker-abstract-interface", "AbstractWorker")}} {{Spec2('HTML WHATWG')}} No change from {{SpecName("Web Workers")}}.
{{SpecName('Web Workers', "#the-abstractworker-abstract-interface", "AbstractWorker")}} {{Spec2('HTML5 W3C')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}

See also

  • The {{domxref("Worker")}} and {{domxref("SharedWorker")}} inheriting it.

 

Revision Source

<p>{{ APIRef() }}</p>
<h2>Summary</h2>
<p>The <strong><code>AbstractWorker</code></strong> interface abstracts properties and methods common to all kind of workers, being {{domxref("Worker")}} or {{domxref("SharedWorker")}}.</p>
<h2 id="Properties">Properties</h2>
<p><em>The <code>AbstractWorker</code></em><em> interface doesn't inherit any property.</em></p>
<dl>
  <dt>
    {{domxref("AbstractWorker.onerror")}}</dt>
  <dd>
    Is an {{ domxref("EventListener") }} that is called whenever an {{domxref("ErrorEvent")}} of type <code>error</code> bubbles through the worker.</dd>
</dl>
<h2 id="Methods">Methods</h2>
<p><em>The <code>AbstractWorker</code></em><em> interface doesn't implement or inherit any method.</em></p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
    <tr>
      <td>{{SpecName('HTML WHATWG', "#the-abstractworker-abstract-interface", "AbstractWorker")}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>No change from {{SpecName("Web Workers")}}.</td>
    </tr>
    <tr>
      <td>{{SpecName('Web Workers', "#the-abstractworker-abstract-interface", "AbstractWorker")}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div>
  {{CompatibilityTable}}</div>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>The {{domxref("Worker")}} and {{domxref("SharedWorker")}} inheriting it.</li>
</ul>
<p>&nbsp;</p>
Revert to this revision