RESOLVED FIXED 43120
[IndexedDB] WebDOMStringList default ctor does not initialize its m_private member variable so any attempt to append strings to a WebDOMStringList instance results in a crash.
https://bugs.webkit.org/show_bug.cgi?id=43120
Summary [IndexedDB] WebDOMStringList default ctor does not initialize its m_private m...
Andrei Popescu
Reported 2010-07-28 08:19:59 PDT
[IndexedDB] WebDOMStringList default ctor does not initialize its m_private member variable so any attempt to append strings to a WebDOMStringList instance results in a crash.
Attachments
Patch (4.03 KB, patch)
2010-07-28 08:24 PDT, Andrei Popescu
jorlow: review+
Andrei Popescu
Comment 1 2010-07-28 08:24:27 PDT
Jeremy Orlow
Comment 2 2010-07-28 08:46:52 PDT
Comment on attachment 62824 [details] Patch LayoutTests/storage/indexeddb/script-tests/objectstore-basics.js:37 + shouldBe("storeNames.contains('storeName')", "true"); Maybe also check that there's only this one item? WebKit/chromium/public/WebDOMStringList.h:49 + WebDOMStringList(); I'd lean towards making this private and have 2 factory methods instead: "createEmpty" and "createNull". Though since no one needs the "null" behavior today, I'm OK with you leaving this as is. me
Andrei Popescu
Comment 3 2010-07-28 09:18:48 PDT
(In reply to comment #2) > (From update of attachment 62824 [details]) > LayoutTests/storage/indexeddb/script-tests/objectstore-basics.js:37 > + shouldBe("storeNames.contains('storeName')", "true"); > Maybe also check that there's only this one item? > Checked. > WebKit/chromium/public/WebDOMStringList.h:49 > + WebDOMStringList(); > I'd lean towards making this private and have 2 factory methods instead: "createEmpty" and "createNull". Though since no one needs the "null" behavior today, I'm OK with you leaving this as is. > Cool, thank you.
Andrei Popescu
Comment 4 2010-07-28 09:28:06 PDT
Note You need to log in before you can comment on or make changes to this bug.