WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151278
Modern IDB: Make in-memory Index cursors work
https://bugs.webkit.org/show_bug.cgi?id=151278
Summary
Modern IDB: Make in-memory Index cursors work
Brady Eidson
Reported
2015-11-13 15:55:14 PST
Modern IDB:Make in-memory Index cursors work
Attachments
Patch v1
(119.73 KB, patch)
2015-11-18 10:33 PST
,
Brady Eidson
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews107 for mac-mavericks-wk2
(873.63 KB, application/zip)
2015-11-18 11:17 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews102 for mac-mavericks
(675.38 KB, application/zip)
2015-11-18 11:20 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews115 for mac-yosemite
(776.35 KB, application/zip)
2015-11-18 11:32 PST
,
Build Bot
no flags
Details
Patch v2
(119.32 KB, patch)
2015-11-18 14:38 PST
,
Brady Eidson
achristensen
: review+
achristensen
: commit-queue-
Details
Formatted Diff
Diff
Patch v3
(119.40 KB, patch)
2015-11-18 15:39 PST
,
Brady Eidson
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing rebaselined
(123.38 KB, patch)
2015-11-18 19:48 PST
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2015-11-18 10:33:22 PST
Created
attachment 265752
[details]
Patch v1
Build Bot
Comment 2
2015-11-18 11:17:08 PST
Comment on
attachment 265752
[details]
Patch v1
Attachment 265752
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/446283
New failing tests: imported/w3c/indexeddb/idbcursor_iterating.htm storage/indexeddb/cursor-reverse-bug.html imported/w3c/indexeddb/idbcursor-continue.htm storage/indexeddb/objectstore-cursor.html storage/indexeddb/mozilla/indexes.html storage/indexeddb/cursor-prev-no-duplicate.html imported/w3c/indexeddb/idbcursor-advance.htm storage/indexeddb/cursor-skip-deleted.html storage/indexeddb/cursor-delete.html storage/indexeddb/cursor-inconsistency.html storage/indexeddb/open-cursor.html storage/indexeddb/mozilla/cursors.html
Build Bot
Comment 3
2015-11-18 11:17:11 PST
Created
attachment 265759
[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
Build Bot
Comment 4
2015-11-18 11:20:17 PST
Comment on
attachment 265752
[details]
Patch v1
Attachment 265752
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/446315
New failing tests: storage/indexeddb/modern/index-cursor-3.html
Build Bot
Comment 5
2015-11-18 11:20:19 PST
Created
attachment 265760
[details]
Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Alex Christensen
Comment 6
2015-11-18 11:21:09 PST
Comment on
attachment 265752
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=265752&action=review
I'll finish reviewing once these failing tests are addressed.
> Source/WebCore/Modules/indexeddb/server/IndexValueEntry.cpp:137 > + return m_entry;
!!m_entry
> Source/WebCore/WebCore.xcodeproj/project.pbxproj:2365 > - 5E2C43741BCF0D750001E2BC /* JSRTCRtpSender.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E2C43701BCF0D690001E2BC /* JSRTCRtpSender.h */; settings = {ASSET_TAGS = (); }; }; > + 5E16A2E41BFA650B0029A21E /* MediaEndpointPeerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E16A2E31BFA64FB0029A21E /* MediaEndpointPeerConnection.h */; };
What's all this?
Build Bot
Comment 7
2015-11-18 11:32:03 PST
Comment on
attachment 265752
[details]
Patch v1
Attachment 265752
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/446328
New failing tests: storage/indexeddb/modern/index-cursor-3.html
Build Bot
Comment 8
2015-11-18 11:32:05 PST
Created
attachment 265764
[details]
Archive of layout-test-results from ews115 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-yosemite Platform: Mac OS X 10.10.5
Brady Eidson
Comment 9
2015-11-18 12:12:02 PST
(In reply to
comment #6
)
> Comment on
attachment 265752
[details]
> Patch v1 > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=265752&action=review
> > I'll finish reviewing once these failing tests are addressed. > > > Source/WebCore/Modules/indexeddb/server/IndexValueEntry.cpp:137 > > + return m_entry; > > !!m_entry
I believe null vs non-null raw pointers convert to bool with no issue. What's the point behind the !!? Did I miss a coding style update?
> > > Source/WebCore/WebCore.xcodeproj/project.pbxproj:2365 > > - 5E2C43741BCF0D750001E2BC /* JSRTCRtpSender.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E2C43701BCF0D690001E2BC /* JSRTCRtpSender.h */; settings = {ASSET_TAGS = (); }; }; > > + 5E16A2E41BFA650B0029A21E /* MediaEndpointPeerConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 5E16A2E31BFA64FB0029A21E /* MediaEndpointPeerConnection.h */; }; > > What's all this?
Xcode nonsense (You've never seen that...?!?!?)
Brady Eidson
Comment 10
2015-11-18 12:13:46 PST
As for the layout test failures, almost certainly due to the changes in IDBKeyData affecting modern and legacy IDB. Looking into it.
Brady Eidson
Comment 11
2015-11-18 14:38:16 PST
Created
attachment 265781
[details]
Patch v2
Alex Christensen
Comment 12
2015-11-18 15:27:26 PST
Comment on
attachment 265781
[details]
Patch v2 View in context:
https://bugs.webkit.org/attachment.cgi?id=265781&action=review
Iterators wrapping iterators wrapping iterators.
> Source/WebCore/Modules/indexeddb/server/MemoryIndex.cpp:157 > + notifyCursorsOfAllRecordsChanged();
I'm a little concerned that there's no automated mechanism to find any missing calls to this function (which would lead to security bugs), but it won't be hard to find them with test cases.
> Source/WebCore/Modules/indexeddb/server/MemoryIndexCursor.cpp:121 > + getResult = { };
clear m_currentKey and m_currentPrimaryKey here, too.
Brady Eidson
Comment 13
2015-11-18 15:39:54 PST
Created
attachment 265788
[details]
Patch v3
WebKit Commit Bot
Comment 14
2015-11-18 17:37:12 PST
Comment on
attachment 265788
[details]
Patch v3 Rejecting
attachment 265788
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 265788, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: 0-ab3c-d52691b4dbfc ... Currently at 192599 = 175b90f42ba454ea4480504968bd5cc4e4932986
r192600
= 94db3ba64bdddb8e6db180b5e0863963ecc1d3a3
r192601
= 8eef4aa53ddad333f4e85017a4580ba3f774d6b3
r192602
= de8712090cf7ee354113849565a71d352d771722
r192603
= bfec9b333ac0ed1ec00d36995a55eececd3c34da Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/origin/master. Full output:
http://webkit-queues.webkit.org/results/447742
Brady Eidson
Comment 15
2015-11-18 19:48:37 PST
Created
attachment 265837
[details]
Patch for landing rebaselined
WebKit Commit Bot
Comment 16
2015-11-18 20:36:06 PST
Comment on
attachment 265837
[details]
Patch for landing rebaselined Clearing flags on attachment: 265837 Committed
r192610
: <
http://trac.webkit.org/changeset/192610
>
WebKit Commit Bot
Comment 17
2015-11-18 20:36:11 PST
All reviewed patches have been landed. Closing bug.
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