Bug 1178806. IndexedDB autoincrement overflow should be throwing ConstraintError per spec. r=bent

This commit is contained in:
Boris Zbarsky 2015-07-01 00:15:30 -04:00
parent 86db80c6f3
commit 07d97d9536
2 changed files with 1 additions and 7 deletions

View File

@ -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);

View File

@ -1,5 +0,0 @@
[keygenerator-overflow.htm]
type: testharness
[Keygenerator overflow]
expected: FAIL