WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 150939
Modern IDB: Make indexes actually index
https://bugs.webkit.org/show_bug.cgi?id=150939
Summary
Modern IDB: Make indexes actually index
Brady Eidson
Reported
2015-11-05 11:30:04 PST
Modern IDB: Make indexes actually index
Attachments
Patch v1
(91.95 KB, patch)
2015-11-10 16:01 PST
,
Brady Eidson
achristensen
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews107 for mac-mavericks-wk2
(942.05 KB, application/zip)
2015-11-10 16:50 PST
,
Build Bot
no flags
Details
Patch for landing
(87.71 KB, patch)
2015-11-10 20:35 PST
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2015-11-10 16:01:31 PST
Created
attachment 265241
[details]
Patch v1
Build Bot
Comment 2
2015-11-10 16:50:11 PST
Comment on
attachment 265241
[details]
Patch v1
Attachment 265241
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/412198
New failing tests: fast/hidpi/image-set-border-image-simple.html
Build Bot
Comment 3
2015-11-10 16:50:13 PST
Created
attachment 265245
[details]
Archive of layout-test-results from ews107 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Alex Christensen
Comment 4
2015-11-10 17:58:09 PST
Comment on
attachment 265241
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=265241&action=review
r=me
> Source/WebCore/Modules/indexeddb/shared/IndexKey.cpp:45 > + Vector<IDBKeyData> keys; > + keys.reserveCapacity(m_keys.size());
reserveInitialCapacity
Brady Eidson
Comment 5
2015-11-10 20:28:37 PST
(In reply to
comment #4
)
> Comment on
attachment 265241
[details]
> Patch v1 > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=265241&action=review
> > r=me > > > Source/WebCore/Modules/indexeddb/shared/IndexKey.cpp:45 > > + Vector<IDBKeyData> keys; > > + keys.reserveCapacity(m_keys.size()); > > reserveInitialCapacity
Good call. Thx
Brady Eidson
Comment 6
2015-11-10 20:35:05 PST
Created
attachment 265263
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2015-11-10 22:07:04 PST
Comment on
attachment 265263
[details]
Patch for landing Clearing flags on attachment: 265263 Committed
r192294
: <
http://trac.webkit.org/changeset/192294
>
Darin Adler
Comment 8
2015-11-19 13:44:34 PST
Comment on
attachment 265241
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=265241&action=review
> Source/WebCore/Modules/indexeddb/server/IndexValueEntry.cpp:64 > + if (m_unique && m_key && *m_key == key) {
This is wrong when m_unique is true but m_key is null or not equal. It will fall into the code below and deterrence the pointer as the wrong type!
Darin Adler
Comment 9
2015-11-19 13:45:51 PST
Comment on
attachment 265263
[details]
Patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=265263&action=review
> Source/WebCore/Modules/indexeddb/server/IndexValueEntry.cpp:64 > + if (m_unique && m_key && *m_key == key) {
Still wrong here. Need a test case for this and need to fix this by using a nested if rather than just a single one.
Darin Adler
Comment 10
2015-11-19 13:52:32 PST
deterrence -> dereference
Brady Eidson
Comment 11
2015-11-19 13:59:28 PST
(In reply to
comment #9
)
> Comment on
attachment 265263
[details]
> Patch for landing > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=265263&action=review
> > > Source/WebCore/Modules/indexeddb/server/IndexValueEntry.cpp:64 > > + if (m_unique && m_key && *m_key == key) { > > Still wrong here. Need a test case for this and need to fix this by using a > nested if rather than just a single one.
This patch landed with this bug as you pointed out. *BUT* it was caught in a new test and fixed in
https://trac.webkit.org/changeset/192610
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug