- From: Ayu Ishii <notifications@github.com>
- Date: Thu, 06 Mar 2025 14:37:33 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3ctag/design-reviews/issues/1065@github.com>
ayuishii created an issue (w3ctag/design-reviews#1065)
こんにちは 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" `DOMException`s get upgraded to instead throw `QuotaExceededError`s. 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).
- Explainer¹: https://github.com/whatwg/webidl/pull/1465
- Specification: https://github.com/whatwg/webidl/pull/1465
- WPT Tests: To be added (current DomException WPT [here](https://crsrc.org/c/third_party/blink/web_tests/external/wpt/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js))
- Security and Privacy self-review²: This should not be applicable to this change. While it allows features to allow carrying additional information, it does not require it. It should be evaluated case-by-case to ensure it does not cause any privacy leaks for that feature.
- GitHub repo: https://github.com/whatwg/webidl
- Primary contacts:
- Domenic Denicola(@domenic ), Google, proposal author
- Ayu Ishii (@ayuishii ), Google
- Organization/project driving the specification: Google
- Multi-stakeholder support³:
- Chromium comments: Supportive/driving
- Mozilla comments: [Under consideration](https://github.com/whatwg/html/issues/10972#:~:text=think%20of%20this-,quotaexceedederror,-domenic%3A%20this%20is)
- WebKit comments: https://github.com/WebKit/standards-positions/issues/468
- Status/issue trackers for implementations⁴: https://chromestatus.com/feature/6194847180128256
Further details:
- [x] I have reviewed the TAG's [Web Platform Design Principles](https://www.w3.org/TR/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
--
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1065
You are receiving this because you are subscribed to this thread.
Message ID: <w3ctag/design-reviews/issues/1065@github.com>
Received on Thursday, 6 March 2025 22:37:37 UTC