Closed Bug 1178806 Opened 9 years ago Closed 9 years ago

IDB autoincrement overflow should throw a ConstraintError, not UnknownError

Categories

(Core :: Storage: IndexedDB, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8627738 [details] [diff] [review]
IndexedDB autoincrement overflow should be throwing ConstraintError per spec

Review of attachment 8627738 [details] [diff] [review]:
-----------------------------------------------------------------

Awesome thanks.

::: dom/indexedDB/ActorsParent.cpp
@@ +23266,5 @@
>  
>        MOZ_ASSERT(autoIncrementNum > 0);
>  
>        if (autoIncrementNum > (1LL << 53)) {
>          IDB_REPORT_INTERNAL_ERR();

Can you remove this line also?
Attachment #8627738 - Flags: review?(bent.mozilla) → review+
Blocks: 1178829
https://hg.mozilla.org/mozilla-central/rev/f87683a37d20
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Target Milestone: mozilla41 → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: