Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete worker.close() and related entries #11557

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

foolip
Copy link
Contributor

@foolip foolip commented Jul 16, 2021

There are close() methods on both
DedicatedWorkerGlobalScope and SharedWorkerGlobalScope in BCD and MDN
already:
https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close

There's a note here that explains how this came about:
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close#browser_compatibility

However, we need not keep this data or even have notes about it:
https://github.com/mdn/browser-compat-data/blob/main/docs/data-guidelines.md#apis-moved-on-the-prototype-chain

Furthermore, there is no close event or onclose property. It's not clear
when this was removed from browsers, but the onclose property is at
least not supported anywhere today.

This also updates some existing data:

Verified supported in Opera 10.6:
http://mdn-bcd-collector.appspot.com/tests/api/DedicatedWorkerGlobalScope/close
http://mdn-bcd-collector.appspot.com/tests/api/SharedWorkerGlobalScope/close

Firefox for Android data was also bumped to 29, it's implausible that it
was supported much earlier on Android. It's probably the result of
copying data from DedicatedWorkerGlobalScope, which is marked as
supported since firefox for Android 4.

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Jul 16, 2021
@foolip foolip added the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Jul 16, 2021
@foolip
Copy link
Contributor Author

foolip commented Jul 16, 2021

@foolip
Copy link
Contributor Author

foolip commented Jul 16, 2021

Hmm, more can be removed here in BCD. There's an onclose property that actually isn't supported anywhere.

@foolip foolip changed the title Remove api.WorkerGlobalScope.close entry Remove obsolete worker.close() and related entries Jul 16, 2021
@foolip foolip force-pushed the rm-WorkerGlobalScope-close branch from 6e663cf to 28e097e Compare July 16, 2021 16:06
@Elchi3
Copy link
Member

Elchi3 commented Jul 19, 2021

LGTM but conflict needs to be solved.

Content work: mdn/content#7033

There are close() methods on both
DedicatedWorkerGlobalScope and SharedWorkerGlobalScope in BCD and MDN
already:
https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close

There's a note here that explains how this came about:
https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close#browser_compatibility

However, we need not keep this data or even have notes about it:
https://github.com/mdn/browser-compat-data/blob/main/docs/data-guidelines.md#apis-moved-on-the-prototype-chain

Furthermore, there is no close event or onclose property. It's not clear
when this was removed from browsers, but the onclose property is at
least not supported anywhere today.

This also updates some existing data:

Verified supported in Opera 10.6:
http://mdn-bcd-collector.appspot.com/tests/api/DedicatedWorkerGlobalScope/close
http://mdn-bcd-collector.appspot.com/tests/api/SharedWorkerGlobalScope/close

Firefox for Android data was also bumped to 29, it's implausible that it
was supported much earlier on Android. It's probably the result of
copying data from DedicatedWorkerGlobalScope, which is marked as
supported since firefox for Android 4.
@foolip foolip force-pushed the rm-WorkerGlobalScope-close branch from 28e097e to 236c5c0 Compare July 19, 2021 11:33
@foolip
Copy link
Contributor Author

foolip commented Jul 19, 2021

@Elchi3 rebased to resolve conflicts.

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Elchi3 Elchi3 merged commit 0877760 into mdn:main Jul 19, 2021
@foolip foolip deleted the rm-WorkerGlobalScope-close branch July 19, 2021 21:14
ddbeck added a commit to ddbeck/browser-compat-data that referenced this pull request Jul 22, 2021
@ddbeck ddbeck removed needs-release-note 📰 needs content update This PR needs a corresponding update to mdn/content to update the documentation labels Jul 22, 2021
ddbeck added a commit that referenced this pull request Jul 22, 2021
* Bump version to v3.3.12

* Add release note for #11661

* Add release notes for
#11173 and #11175

* Add release note for #11534

* Add release note for #11544

* Add release note for #11551

* Add release note for #11555

* Add release note for #11556

* Add release note for #11557

* Add release note for #11633

* Add release note for #11636

* Add release note for #11637

* Add release note for #11530

* Add release stats and date

* Consolidate Safari for iOS version consolidation notes

* Format PR URL
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.

3 participants