Skip to content

Commit b505386

Browse files
committed
Bug 1966538 [wpt PR 52556] - QuotaExceededError: Update to a DOMException derived interface,
Automatic update from web-platform-tests QuotaExceededError: Update to a DOMException derived interface (#52556) This change introduces a new QuotaExceededError class to update the existing QuotaExceededError so services can return `quota` and `requested` properties as needed. Implemented behind RuntimeEnabledFlag `QuotaExceededErrorUpdate`. Changes to update services throwing QuotaExceededError to use the new class will be made in following changes (except for IDB which triggered failures with this change). Proposal: whatwg/webidl#1465 Chromestatus: https://chromestatus.com/feature/6194847180128256 Bug: 406162261 Change-Id: I68e91e15724e64c0995365ee63d4abe627fe06d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6516473 Reviewed-by: Domenic Denicola <domenicchromium.org> Commit-Queue: Ayu Ishii <ayuichromium.org> Reviewed-by: Joey Arhar <jarharchromium.org> Reviewed-by: Joe Mason <joenotcharlesgoogle.com> Cr-Commit-Position: refs/heads/main{#1460403} Co-authored-by: Ayu Ishii <ayuichromium.org> -- wpt-commits: 16a71c4282b0379f639051c0a3f98f3fcdaa2149 wpt-pr: 52556 Differential Revision: https://phabricator.services.mozilla.com/D250632 UltraBlame original commit: 869cbd71034aec8dfdce6d5342adbfc5d8dbf8e6
1 parent cf9547f commit b505386

3 files changed

Lines changed: 50 additions & 19 deletions

File tree

testing/web-platform/tests/resources/testharness.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16751,9 +16751,6 @@ AbortError
1675116751
URLMismatchError
1675216752
:
1675316753
21
16754-
QuotaExceededError
16755-
:
16756-
22
1675716754
TimeoutError
1675816755
:
1675916756
23
@@ -16796,6 +16793,9 @@ NotAllowedError
1679616793
OptOutError
1679716794
:
1679816795
0
16796+
QuotaExceededError
16797+
:
16798+
0
1679916799
}
1680016800
;
1680116801
var

testing/web-platform/tests/storage/buckets/bucket-quota-indexeddb.tentative.https.any.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,19 +273,31 @@ random
273273
2
274274
)
275275
;
276+
try
277+
{
276278
await
277-
promise_rejects_dom
278-
(
279-
t
280-
'
281-
QuotaExceededError
282-
'
283279
transactionPromise
284280
(
285281
txn
286282
)
283+
;
284+
}
285+
catch
286+
(
287+
e
288+
)
289+
{
290+
assert_equals
291+
(
292+
e
293+
.
294+
name
295+
'
296+
QuotaExceededError
297+
'
287298
)
288299
;
300+
}
289301
db
290302
.
291303
close

testing/web-platform/tests/webidl/ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,16 +1055,6 @@ code
10551055
name
10561056
:
10571057
"
1058-
QuotaExceededError
1059-
"
1060-
code
1061-
:
1062-
22
1063-
}
1064-
{
1065-
name
1066-
:
1067-
"
10681058
TimeoutError
10691059
"
10701060
code
@@ -1265,6 +1255,35 @@ code
12651255
:
12661256
0
12671257
}
1258+
/
1259+
/
1260+
See
1261+
https
1262+
:
1263+
/
1264+
/
1265+
github
1266+
.
1267+
com
1268+
/
1269+
whatwg
1270+
/
1271+
webidl
1272+
/
1273+
pull
1274+
/
1275+
1465
1276+
.
1277+
{
1278+
name
1279+
:
1280+
"
1281+
QuotaExceededError
1282+
"
1283+
code
1284+
:
1285+
0
1286+
}
12681287
]
12691288
.
12701289
forEach

0 commit comments

Comments
 (0)