Skip to content

Demix AbstractWorker↠ Worker/SharedWorker/ServiceWorker.onerror#10744

Merged
sideshowbarker merged 1 commit intomdn:mainfrom
foolip:rm-AbstractWorker
Jun 7, 2021
Merged

Demix AbstractWorker↠ Worker/SharedWorker/ServiceWorker.onerror#10744
sideshowbarker merged 1 commit intomdn:mainfrom
foolip:rm-AbstractWorker

Conversation

@foolip
Copy link
Contributor

@foolip foolip commented Jun 3, 2021

Tests:
https://staging-dot-mdn-bcd-collector.appspot.com/tests/api/Worker/onerror
https://staging-dot-mdn-bcd-collector.appspot.com/tests/api/SharedWorker/onerror
https://mdn-bcd-collector.appspot.com/tests/api/ServiceWorker/onerror (prototype test only)

Manually confirmed:

  • Worker.onerror and SharedWorker.onerror in Chrome 15
  • *.onerror in Edge 80
  • ServiceWorker.onerror in Firefox 44
  • *.onerror in Firefox Android 80
  • Worker.onerror and SharedWorker.onerror in Opera 12.16
  • ServiceWorker.onerror in Safari 11.1

Also, the onerror attribute was in WebKit source at the time of the
initial release of Worker and SharedWorker, respectively:
https://trac.webkit.org/browser/webkit/releases/Apple/Safari%204.0/WebCore/workers/Worker.idl?rev=135093
https://trac.webkit.org/browser/webkit/releases/Apple/Safari%205.0/WebCore/workers/AbstractWorker.idl?rev=135093

From this we can also glean that AbstractWorker was at one point an
abstract base interface and not a mixin, but that doesn't matter.

Beyond this testing, much of the data is assumed to match the parent
entries, and the data ends up matching (modulo notes) for SharedWorker
and ServiceWorker. For Worker the only difference is the nodejs data,
which is set to false like onmessage and onmessageerror, rather than
working out the correct versions from the documentation:
https://nodejs.org/api/worker_threads.html#worker_threads_event_error

@foolip foolip requested a review from Elchi3 June 3, 2021 11:35
@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jun 3, 2021
Tests:
https://staging-dot-mdn-bcd-collector.appspot.com/tests/api/Worker/onerror
https://staging-dot-mdn-bcd-collector.appspot.com/tests/api/SharedWorker/onerror
https://mdn-bcd-collector.appspot.com/tests/api/ServiceWorker/onerror (prototype test only)

Manually confirmed:
 - Worker.onerror and SharedWorker.onerror in Chrome 15
 - *.onerror in Edge 80
 - ServiceWorker.onerror in Firefox 44
 - *.onerror in Firefox Android 80
 - Worker.onerror and SharedWorker.onerror in Opera 12.16
 - ServiceWorker.onerror in Safari 11.1

Also, the onerror attribute was in WebKit source at the time of the
initial release of Worker and SharedWorker, respectively:
https://trac.webkit.org/browser/webkit/releases/Apple/Safari%204.0/WebCore/workers/Worker.idl?rev=135093
https://trac.webkit.org/browser/webkit/releases/Apple/Safari%205.0/WebCore/workers/AbstractWorker.idl?rev=135093

From this we can also glean that AbstractWorker was at one point an
abstract base interface and not a mixin, but that doesn't matter.

Beyond this testing, much of the data is assumed to match the parent
entries, and the data ends up matching (modulo notes) for SharedWorker
and ServiceWorker. For Worker the only difference is the nodejs data,
which is set to false like onmessage and onmessageerror, rather than
working out the correct versions from the documentation:
https://nodejs.org/api/worker_threads.html#worker_threads_event_error
@foolip foolip force-pushed the rm-AbstractWorker branch from fb80944 to 0ab9109 Compare June 3, 2021 12:07
foolip added a commit to foolip/content that referenced this pull request Jun 3, 2021
This creates 3 individual onerror pages with different wording and
examples.

BCD demixing: mdn/browser-compat-data#10744
@foolip
Copy link
Contributor Author

foolip commented Jun 3, 2021

MDN cleanup is here: mdn/content#5622

foolip added a commit to foolip/content that referenced this pull request Jun 4, 2021
This creates 3 individual onerror pages with different wording and
examples.

BCD demixing: mdn/browser-compat-data#10744
@foolip foolip requested a review from sideshowbarker June 7, 2021 05:34
@sideshowbarker sideshowbarker changed the title Demix AbstractWorker to Worker/SharedWorker/ServiceWorker.onerror Demix AbstractWorker↠ Worker/SharedWorker/ServiceWorker.onerror Jun 7, 2021
@sideshowbarker sideshowbarker merged commit 56ca809 into mdn:main Jun 7, 2021
@foolip foolip deleted the rm-AbstractWorker branch June 7, 2021 07:52
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request Jun 9, 2021
ddbeck added a commit that referenced this pull request Jun 10, 2021
* Bump version to v3.3.7

* Add release note for #10745

* Add release note for #10686

* Add release note for #10744

* Add release note for #10820

* Add release note for #10582

* Add release note for #9464

* Add release note for #10724

* Add release note for #10827

* Add release note for #10829

* Add release note for #10782

* Add stats

* Add release date

* Update stats one last time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants