Bug 161178 - Web Inspector: Test and address issues in IndexedDB.requestData
Summary: Web Inspector: Test and address issues in IndexedDB.requestData
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-24 18:59 PDT by Joseph Pecoraro
Modified: 2016-08-26 14:01 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (32.77 KB, patch)
2016-08-24 19:05 PDT, Joseph Pecoraro
bburg: review-
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-yosemite (762.92 KB, application/zip)
2016-08-24 19:56 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (847.59 KB, application/zip)
2016-08-24 20:00 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews113 for mac-yosemite (1.46 MB, application/zip)
2016-08-24 20:03 PDT, Build Bot
no flags Details
[PATCH] Proposed Fix (33.68 KB, patch)
2016-08-25 19:03 PDT, Joseph Pecoraro
bburg: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-yosemite-wk2 (1.11 MB, application/zip)
2016-08-25 20:06 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews115 for mac-yosemite (1.47 MB, application/zip)
2016-08-25 20:17 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews101 for mac-yosemite (1010.38 KB, application/zip)
2016-08-25 20:26 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2016-08-24 18:59:03 PDT
Summary:
Test and address issues in IndexedDB.requestData.

This exists in the protocol, but is currently unused and untested. Testing it found some issues which were easy to fix.
Comment 1 Radar WebKit Bug Importer 2016-08-24 18:59:24 PDT
<rdar://problem/28002467>
Comment 2 Joseph Pecoraro 2016-08-24 19:00:18 PDT
(In reply to comment #0)
> but is currently unused

That was wrong. Its basic functionality is used. Other functionality (key ranges) is not used. And some functionality (pagination) is broken. This tests everything.
Comment 3 Joseph Pecoraro 2016-08-24 19:05:53 PDT
Created attachment 286930 [details]
[PATCH] Proposed Fix

Blocked on other patches still up for review.
Comment 4 Build Bot 2016-08-24 19:56:40 PDT
Comment on attachment 286930 [details]
[PATCH] Proposed Fix

Attachment 286930 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1937405

New failing tests:
inspector/indexeddb/requestData.html
Comment 5 Build Bot 2016-08-24 19:56:42 PDT
Created attachment 286934 [details]
Archive of layout-test-results from ews103 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 6 Build Bot 2016-08-24 20:00:17 PDT
Comment on attachment 286930 [details]
[PATCH] Proposed Fix

Attachment 286930 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1937408

New failing tests:
inspector/indexeddb/requestData.html
Comment 7 Build Bot 2016-08-24 20:00:19 PDT
Created attachment 286936 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 8 Build Bot 2016-08-24 20:03:24 PDT
Comment on attachment 286930 [details]
[PATCH] Proposed Fix

Attachment 286930 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1937406

New failing tests:
inspector/indexeddb/requestData.html
Comment 9 Build Bot 2016-08-24 20:03:26 PDT
Created attachment 286937 [details]
Archive of layout-test-results from ews113 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 BJ Burg 2016-08-25 16:32:26 PDT
Comment on attachment 286930 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=286930&action=review

r- because of the real names issue. The rest looks pretty good and thorough, EWS notwithstanding.

> LayoutTests/inspector/indexeddb/requestData-expected.txt:12
> +PASS: Value should be a remote object for: 'Timothy Hatcher'

Please don't use real data/names in layout tests.

> LayoutTests/inspector/indexeddb/requestData.html:24
> +            // <https://webkit.org/b/148006> Each test should run with its own clean data store

Same comment as in other patches.

> Source/WebCore/inspector/InspectorIndexedDBAgent.cpp:509
> +        Ref<OpenCursorCallback> openCursorCallback = OpenCursorCallback::create(m_injectedScript, m_requestCallback.copyRef(), m_skipCount, m_pageSize);

Ouch!
Comment 11 Joseph Pecoraro 2016-08-25 19:03:20 PDT
Created attachment 287061 [details]
[PATCH] Proposed Fix

Updated names (in the other patch and used in this one).
Comment 12 Build Bot 2016-08-25 20:06:19 PDT
Comment on attachment 287061 [details]
[PATCH] Proposed Fix

Attachment 287061 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/1943344

New failing tests:
inspector/indexeddb/requestData.html
Comment 13 Build Bot 2016-08-25 20:06:22 PDT
Created attachment 287067 [details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5
Comment 14 Build Bot 2016-08-25 20:16:57 PDT
Comment on attachment 287061 [details]
[PATCH] Proposed Fix

Attachment 287061 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/1943333

New failing tests:
inspector/indexeddb/requestData.html
Comment 15 Build Bot 2016-08-25 20:17:00 PDT
Created attachment 287068 [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
Comment 16 Build Bot 2016-08-25 20:26:53 PDT
Comment on attachment 287061 [details]
[PATCH] Proposed Fix

Attachment 287061 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/1943504

New failing tests:
inspector/indexeddb/requestData.html
Comment 17 Build Bot 2016-08-25 20:26:56 PDT
Created attachment 287069 [details]
Archive of layout-test-results from ews101 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 18 BJ Burg 2016-08-26 12:49:23 PDT
Comment on attachment 287061 [details]
[PATCH] Proposed Fix

r=me, thanks ;-)
Comment 19 Joseph Pecoraro 2016-08-26 14:01:47 PDT
<https://trac.webkit.org/changeset/205042>