Bug 150150 - Modern IDB: Support IDBDatabase.close()
Summary: Modern IDB: Support IDBDatabase.close()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords:
Depends on: 150215
Blocks: 149117
  Show dependency treegraph
 
Reported: 2015-10-14 16:15 PDT by Brady Eidson
Modified: 2015-10-17 16:26 PDT (History)
6 users (show)

See Also:


Attachments
Patch v1 (20.22 KB, patch)
2015-10-15 15:52 PDT, Brady Eidson
achristensen: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (720.54 KB, application/zip)
2015-10-15 16:33 PDT, Build Bot
no flags Details
Patch for landing (25.89 KB, patch)
2015-10-16 09:32 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2015-10-14 16:15:02 PDT
Modern IDB: Support IDBDatabase.close()

Now that we support versionchange events to open database connections (https://bugs.webkit.org/show_bug.cgi?id=150149), we need to support IDBDatabase.close() to respond to them.
Comment 1 Brady Eidson 2015-10-15 09:50:21 PDT
Actually, this does not rely on 150149, and doing it earlier will help with other tests.
Comment 2 Brady Eidson 2015-10-15 15:52:00 PDT
Created attachment 263211 [details]
Patch v1
Comment 3 Alex Christensen 2015-10-15 16:02:42 PDT
Comment on attachment 263211 [details]
Patch v1

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

> LayoutTests/storage/indexeddb/modern/opendatabase-versions.html:37
> +        request.transaction.db.close();

Try closing it twice in a test.
Comment 4 Build Bot 2015-10-15 16:33:28 PDT
Comment on attachment 263211 [details]
Patch v1

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

New failing tests:
storage/websql/alter-to-info-table.html
Comment 5 Build Bot 2015-10-15 16:33:30 PDT
Created attachment 263219 [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
Comment 6 Brady Eidson 2015-10-15 17:10:05 PDT
It seems extremely unlikely that the test failures seem on mac-wk1 could be because of this patch.

Will look into them before landing.
Comment 7 Brady Eidson 2015-10-15 17:10:39 PDT
(In reply to comment #6)
> It seems extremely unlikely that the test failures seem on mac-wk1 could be
> because of this patch.
> 
> Will look into them before landing.

As is evidenced by:
> Unable to pass tests without patch (tree is red?) [results]
Comment 8 Brady Eidson 2015-10-15 17:24:30 PDT
It's obvious on the bots that the tests are in terrible shape right now.

Builds fine locally, landing soon.
Comment 9 Brady Eidson 2015-10-15 17:25:55 PDT
https://trac.webkit.org/changeset/191156
Comment 10 Brady Eidson 2015-10-15 17:26:50 PDT
Yikes! A new failure was introduced. Sorry. Trying to rollout now.
Comment 11 WebKit Commit Bot 2015-10-15 17:30:05 PDT
Re-opened since this is blocked by bug 150215
Comment 12 Brady Eidson 2015-10-15 19:56:33 PDT
Looks like leftovers from an indexeddb test causing a crash (ASSERT) in the first following test - storage/websql/alter-to-info-table.html

That said, can't reproduce locally :(
Comment 13 Brady Eidson 2015-10-15 19:57:35 PDT
Looks like an error callback from the server coming through to the client *after* the test is over... maybe.
Comment 14 Brady Eidson 2015-10-15 20:10:18 PDT
Looks like a release build failure, possibly changing timing enough to cause this latent callback to come in.
Comment 15 Brady Eidson 2015-10-15 20:19:34 PDT
(In reply to comment #14)
> Looks like a release build failure, possibly changing timing enough to cause
> this latent callback to come in.

I spotted the obvious bug in the test, and it revealed a very real IDBError crash.

Updated patch incoming.
Comment 16 Brady Eidson 2015-10-16 09:32:21 PDT
Created attachment 263275 [details]
Patch for landing

Fixed the issues, I'll just let the CQ deal with landing this.
Comment 17 WebKit Commit Bot 2015-10-16 10:19:35 PDT
Comment on attachment 263275 [details]
Patch for landing

Clearing flags on attachment: 263275

Committed r191182: <http://trac.webkit.org/changeset/191182>