mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1178806. IndexedDB autoincrement overflow should be throwing ConstraintError per spec. r=bent
This commit is contained in:
parent
86db80c6f3
commit
07d97d9536
@ -23070,8 +23070,7 @@ ObjectStoreAddOrPutRequestOp::DoDatabaseWork(DatabaseConnection* aConnection)
|
||||
MOZ_ASSERT(autoIncrementNum > 0);
|
||||
|
||||
if (autoIncrementNum > (1LL << 53)) {
|
||||
IDB_REPORT_INTERNAL_ERR();
|
||||
return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
|
||||
return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
|
||||
}
|
||||
|
||||
key.SetFromInteger(autoIncrementNum);
|
||||
|
@ -1,5 +0,0 @@
|
||||
[keygenerator-overflow.htm]
|
||||
type: testharness
|
||||
[Keygenerator overflow]
|
||||
expected: FAIL
|
||||
|
Loading…
Reference in New Issue
Block a user