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

Update QuotaExceededError to a DOMException derived interface #1065

Open
1 task done
ayuishii opened this issue Mar 6, 2025 · 0 comments
Open
1 task done

Update QuotaExceededError to a DOMException derived interface #1065

ayuishii opened this issue Mar 6, 2025 · 0 comments

Comments

@ayuishii
Copy link

ayuishii commented Mar 6, 2025

こんにちは TAG-さん!

I'm requesting a TAG review of an updated QuotaExceededError interface.

Currently, when the web platform wants to tell you when you've exceeded quota, it will use DOMException with the specific name property set to QuotaExceededError. However this does not allow carrying additional information.

This proposes removing "QuotaExceededError" from the list of built-in DOMException names, and instead creates a class name QuotaExceededError from the list of built-in DOMException and has the additional optional properties quota and requested. We propose all instances of specs that throw "QuotaExceededError" DOMExceptions get upgraded to instead throw QuotaExceededErrors. For now, such specs would leave the quota and requested properties at their default value of null, but they could eventually upgrade to include that data, if it's useful for their use case (and isn't, e.g., a privacy leak).

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • The group where the work on this specification is currently being done: WHATWG
  • Major unresolved issues with or opposition to this specification: none
  • This work is being funded by: Google
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant