Specification title
QuotaExceededError
Specification or proposal URL (if available)
whatwg/webidl#1465
Explainer URL (if available)
No response
Proposal author(s)
@domenic
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/DOMException#quotaexceedederror
Caniuse.com URL
https://caniuse.com/mdn-api_domexception
Bugzilla URL
No response
Mozillians who can provide input
@smaug----
WebKit standards-position
WebKit/standards-positions#468
Other information
Description
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).
The proposal PR outlines scenarios where this change may not be backward-incompatible. However, think they are rare coding patterns and anticipate low interoperability risk.
Previous discussions
Previously brought up in a WHATNOT (2025-02-06) with some subtle positive signals of interest while raising compat concerns.
Specification title
QuotaExceededError
Specification or proposal URL (if available)
whatwg/webidl#1465
Explainer URL (if available)
No response
Proposal author(s)
@domenic
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/DOMException#quotaexceedederror
Caniuse.com URL
https://caniuse.com/mdn-api_domexception
Bugzilla URL
No response
Mozillians who can provide input
@smaug----
WebKit standards-position
WebKit/standards-positions#468
Other information
Description
Currently, when the web platform wants to tell you when you've exceeded quota, it will use
DOMExceptionwith the specificnameproperty set toQuotaExceededError. However this does not allow carrying additional information.This proposes removing "QuotaExceededError" from the list of built-in
DOMExceptionnames, and instead creates a class nameQuotaExceededErrorfrom the list of built-inDOMExceptionand has the additional optional propertiesquotaandrequested. We propose all instances of specs that throw "QuotaExceededError"DOMExceptionsget upgraded to instead throwQuotaExceededErrors. For now, such specs would leave thequotaandrequestedproperties at their default value ofnull, 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).The proposal PR outlines scenarios where this change may not be backward-incompatible. However, think they are rare coding patterns and anticipate low interoperability risk.
Previous discussions
Previously brought up in a WHATNOT (2025-02-06) with some subtle positive signals of interest while raising compat concerns.