Closed Bug 1613340 Opened 4 years ago Closed 4 years ago

Remove const_cast from IndexedDB

Categories

(Core :: Storage: IndexedDB, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: sg, Assigned: sg)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

const_cast bears the danger of undefined behaviour. This should be removed from IndexedDB code where possible. Several of the uses const_cast are related to IPDL generated methods, which can be de-virtualized now.

Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Blocks: 1613411
No longer blocks: 1613411
Depends on: 1613854
Priority: -- → P3
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/54432e819f8f
Remove const_cast relating to DatabaseSpec. r=dom-workers-and-storage-reviewers,edenchuang
https://hg.mozilla.org/integration/autoland/rev/e77b18fdf915
Remove const_cast relating to ObjectStoreSpec. r=dom-workers-and-storage-reviewers,edenchuang
https://hg.mozilla.org/integration/autoland/rev/01235f908545
Remove const_cast relating to StructuredCloneReadInfo. r=dom-workers-and-storage-reviewers,edenchuang
https://hg.mozilla.org/integration/autoland/rev/193b829f4c0e
Remove const_cast relating to SerializedStructuredCloneReadInfo. r=jld,dom-workers-and-storage-reviewers,edenchuang
https://hg.mozilla.org/integration/autoland/rev/a1d04bf539f1
Remove const_cast relating to CursorResponse. r=jld,dom-workers-and-storage-reviewers,edenchuang
Blocks: 1636159
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: