Closed Bug 1133540 Opened 9 years ago Closed 8 years ago

Fix assertion failure in versionchange when exceptions are thrown

Categories

(Core :: Storage: IndexedDB, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: bent.mozilla, Assigned: bevis)

Details

(Whiteboard: [tw-dom] btpp-active)

Attachments

(1 file, 1 obsolete file)

Attached patch Patch, v1 (obsolete) — Splinter Review
I found this accidentally, but basically my assertions fail in this strange use case.

We need two databases. The first needs to be a low version number that gets closed when a second higher version number database is created. Then the upgradeneeded event for the second database throws an exception and triggers an abort/close.

Opt builds should be fine.
Attachment #8565088 - Flags: review?(khuey)
Assignee: bent.mozilla → btseng
After further review, I found that the assertion added in patch v1 has been covered in patch part 4 of Bug 1149815 [1].

Hence, I only picked up the test case from v1 with a new helper function called |expectUncaughtException| in helpers.js to ensure that the test case can be verified in both window/worker in mochitest.

Set r? again because |expectUncaughtException| has to be introduced in patch v2.

Treeherder results in M3(Linux Debug) and M2(Linux Opt) are green. [2]

[1] https://hg.mozilla.org/mozilla-central/diff/a9e5be3e74b2/dom/indexedDB/ActorsParent.cpp
[2] https://treeherder.mozilla.org/#/jobs?repo=try&revision=8b326e70ca41&selectedJob=20662535
Attachment #8565088 - Attachment is obsolete: true
Attachment #8751154 - Flags: review?(khuey)
Whiteboard: [tw-dom] btpp-active
Attachment #8751154 - Attachment description: Add Test Coverage for the Assertion. r=khuey → Add Test Coverage for the Assertion.
Attachment #8751154 - Attachment description: Add Test Coverage for the Assertion. → Add Test Coverage for the Assertion. r=khuey
https://hg.mozilla.org/mozilla-central/rev/bd0ff7040a37
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: