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

serviceWorkers and indexedDB delete by hostname #17865

Merged

Conversation

rebloor
Copy link
Contributor

@rebloor rebloor commented Jul 1, 2022

Summary

Adds details about the deletion of serviceWorkers and indexedDB by hostname in browsingData. Provides the content for:

  • Bug 1632990 Allow WebExtensions to clear ServiceWorkers by hostname
  • Bug 1551301 Allow WebExtensions to clear IndexedDB by hostname

(Release note changes were previously made in

- {{WebExtAPIRef("browsingData.remove")}} with type `serviceWorkers` and `indexedDB` now supports deleting by hostname. ({{bug(1632990)}} and {{bug(1551301)}})
).

Related BCD changes provided in mdn/browser-compat-data#16838

Metadata

This PR…

  • Adds a new document
  • Rewrites (or significantly expands) a document
  • Fixes a typo, bug, or other error

@rebloor rebloor added the Content:WebExt WebExtensions docs label Jul 1, 2022
@rebloor rebloor requested a review from a team as a code owner July 1, 2022 18:00
@rebloor rebloor self-assigned this Jul 1, 2022
@rebloor rebloor requested review from willdurand and removed request for a team July 1, 2022 18:00
@github-actions github-actions bot added the Content:Other Any docs not covered by another "Content:" label label Jul 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2022

Preview URLs

Flaws

None! 🎉

External URLs

URL: /en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData/RemovalOptions
Title: browsingData.RemovalOptions
on GitHub

No new external URLs

(this comment was updated 2022-07-12 18:33:17.744428)

@@ -30,9 +30,9 @@ Values of this type are objects. They contain the following properties:

- `hostnames` {{optional_inline}}

- : `Array` of `string`. This property only applies to cookies and local storage items. Only remove cookies and local storage items which are associated with these hostnames.
- : `Array` of `string`. This property applies to cookies, indexedDB, local storage, and service worker items. Remove only cookies, indexedDB, local storage, and service worker items associated with these hostnames.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe these should be links? I think we would usually write "ServiceWorker".

Copy link
Contributor Author

@rebloor rebloor Jul 3, 2022

Choose a reason for hiding this comment

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

@evilpie

Maybe these should be links?

Do you mean, for example:

I think we would usually write "ServiceWorker".

When describing the ServiceWorker interface we use the phrase "reference to a service worker". So I believe this is correct for a generic reference.

@@ -30,9 +30,9 @@ Values of this type are objects. They contain the following properties:

- `hostnames` {{optional_inline}}

- : `Array` of `string`. This property only applies to cookies and local storage items. Only remove cookies and local storage items which are associated with these hostnames.
- : `Array` of `string`. This property applies to cookies, indexedDB, local storage, and service worker items. Remove only cookies, indexedDB, local storage, and service worker items associated with these hostnames.
Copy link
Member

Choose a reason for hiding this comment

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

"service worker items" -> "service worker registrations"

@rebloor rebloor merged commit 5a7c6ae into mdn:main Jul 12, 2022
@rebloor rebloor deleted the serviceWorkers-and-indexedDB-delete-by-hostname branch July 12, 2022 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Other Any docs not covered by another "Content:" label Content:WebExt WebExtensions docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants