nsDOMStorageMemoryDB::GetItemsTable inits hashtable twice

RESOLVED FIXED

Status

()

RESOLVED FIXED
10 years ago
6 years ago

People

(Reporter: peterv, Assigned: mayhemer)

Tracking

({assertion})

Trunk
assertion
Points:
---
Bug Flags:
wanted1.9.2 ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
This triggers the assertion "nsTHashtable::Init() should not be called twice." nsDOMStorageMemoryDB::GetItemsTable does |new nsInMemoryStorage();|, the nsInMemoryStorage constructor calls Init(20) on its hashtable and then nsDOMStorageMemoryDB::GetItemsTable calls Init() on the hashtable again.
(Assignee)

Comment 1

10 years ago
Created attachment 393824 [details] [diff] [review]
v1 [Checkin comment 2]

Thanks for the catch.
Attachment #393824 - Flags: review?(peterv)
(Reporter)

Updated

10 years ago
Attachment #393824 - Flags: review?(peterv) → review+
(Assignee)

Comment 2

9 years ago
Comment on attachment 393824 [details] [diff] [review]
v1 [Checkin comment 2]

http://hg.mozilla.org/mozilla-central/rev/6026b5124cf3
Attachment #393824 - Attachment description: v1 → v1 [Checkin comment 2]
(Assignee)

Updated

9 years ago
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Flags: wanted1.9.2?
Keywords: assertion
Is this wanted/needed on 1.9.2 branch?
Component: DOM: Mozilla Extensions → DOM
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.