Skip to content

Commit f9f53a5

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 a6a2f55 commit f9f53a5

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9973,9 +9973,6 @@ AbortError
99739973
URLMismatchError
99749974
:
99759975
21
9976-
QuotaExceededError
9977-
:
9978-
22
99799976
TimeoutError
99809977
:
99819978
23
@@ -10018,6 +10015,9 @@ NotAllowedError
1001810015
OptOutError
1001910016
:
1002010017
0
10018+
QuotaExceededError
10019+
:
10020+
0
1002110021
}
1002210022
;
1002310023
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
@@ -230,19 +230,31 @@ random
230230
2
231231
)
232232
;
233+
try
234+
{
233235
await
234-
promise_rejects_dom
235-
(
236-
t
237-
'
238-
QuotaExceededError
239-
'
240236
transactionPromise
241237
(
242238
txn
243239
)
240+
;
241+
}
242+
catch
243+
(
244+
e
245+
)
246+
{
247+
assert_equals
248+
(
249+
e
250+
.
251+
name
252+
'
253+
QuotaExceededError
254+
'
244255
)
245256
;
257+
}
246258
db
247259
.
248260
close

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,16 +1046,6 @@ code
10461046
name
10471047
:
10481048
"
1049-
QuotaExceededError
1050-
"
1051-
code
1052-
:
1053-
22
1054-
}
1055-
{
1056-
name
1057-
:
1058-
"
10591049
TimeoutError
10601050
"
10611051
code
@@ -1212,6 +1202,16 @@ code
12121202
:
12131203
0
12141204
}
1205+
{
1206+
name
1207+
:
1208+
"
1209+
QuotaExceededError
1210+
"
1211+
code
1212+
:
1213+
0
1214+
}
12151215
]
12161216
.
12171217
forEach

0 commit comments

Comments
 (0)