Closed Bug 1597191 Opened 5 years ago Closed 5 years ago

Avoid errors in processing preloaded cursor entries to cause an overall error

Categories

(Core :: Storage: IndexedDB, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox-esr68 --- unaffected
firefox70 --- unaffected
firefox71 --- unaffected
firefox72 --- fixed

People

(Reporter: sg, Assigned: sg)

References

(Regression)

Details

(Keywords: regression)

Attachments

(7 files)

By https://searchfox.org/mozilla-central/rev/cac340f10816707e91c46db6d285f80259420f07/dom/indexedDB/ActorsParent.cpp#25950, we may fail when processing preloaded entries, causing an error which would not be present when processing the original entry only. This should be avoided to ensure that preloading is completely transparent.

Bugbug thinks this bug is a defect, but please change it back in case of error.

Type: task → defect
Status: NEW → ASSIGNED

Assertions on the type of an IPDL-defined union before accessing it are redundant,
since the generated accessors already contain a MOZ_RELEASE_ASSERT for checking
the type. Redundant assertions unnecessarily clutter the code, so they are removed.

Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8d10108fdd91
Removed redundant assertions. r=dom-workers-and-storage-reviewers,ytausky
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

What's the plan to fix this regression in 72, considering these patches aren't ready and we're basically at the end of 72 nightly?

Flags: needinfo?(sgiesecke)

(In reply to Julien Cristau [:jcristau] from comment #11)

What's the plan to fix this regression in 72, considering these patches aren't ready and we're basically at the end of 72 nightly?

I am trying to get the patches reviewed this week. If no significant changes are necessary, I can land them by the end of the week.

Flags: needinfo?(sgiesecke)
Pushed by bugmail@asutherland.org:
https://hg.mozilla.org/integration/autoland/rev/a3a4f25c761a
Removed code duplication between response type cases. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/124c6ad47ae6
Pull up SendSuccessResult to CursorOpBase to remove code duplication. r=dom-workers-and-storage-reviewers,edenchuang,asuth
https://hg.mozilla.org/integration/autoland/rev/d9f063b6ae43
Added const where easily possible. r=dom-workers-and-storage-reviewers,perry
https://hg.mozilla.org/integration/autoland/rev/a94d9e2ef3b0
Remove cursor positions from Cursor state. r=dom-workers-and-storage-reviewers,asuth
https://hg.mozilla.org/integration/autoland/rev/fcb930bb061e
Remove duplication between OpenOp::Do*DatabaseWork functions. r=dom-workers-and-storage-reviewers,ytausky
https://hg.mozilla.org/integration/autoland/rev/13e47a0fe213
Do not fail cursor operation when processing preloaded entries. r=dom-workers-and-storage-reviewers,asuth
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: