Bug 36847

Summary: Add new worker-specific tests for the async DB
Product: WebKit Reporter: Eric U. <ericu>
Component: DOMAssignee: Dumitru Daniliuc <dumi>
Status: RESOLVED FIXED    
Severity: Enhancement CC: dumi, ericu, levin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 34992    
Bug Blocks: 34990    
Attachments:
Description Flags
patch #1: access the same DB in workers and the page
levin: review-, dumi: commit-queue-
patch #2: terminate workers in the middle of DB operations
levin: review+, dumi: commit-queue-
patch #1: access the same DB in workers and the page levin: review+, dumi: commit-queue-

Description Eric U. 2010-03-30 13:10:50 PDT
In addition to the existing async DB tests, which are being ported to Web Workers, there are some new tests that should be added.  In particular, we should test simultaneous accesses from the page and the worker, and from multiple workers, and we should test shutting down a worker during database access.  These tests will be racy themselves, but should at least verify that we don't crash or corrupt anything.
Comment 1 Dumitru Daniliuc 2010-07-29 15:35:32 PDT
I'll take this bug. I've already added 2 tests that shut down workers while they access the database. So I'll work on adding some tests that access the same DB in the page and on multiple workers at the same time.
Comment 2 Dumitru Daniliuc 2010-09-30 23:07:16 PDT
Created attachment 69424 [details]
patch #1: access the same DB in workers and the page
Comment 3 Dumitru Daniliuc 2010-09-30 23:16:41 PDT
Created attachment 69425 [details]
patch #2: terminate workers in the middle of DB operations

These tests were initially added in http://trac.webkit.org/changeset/64313. Then that patch got reverted in http://trac.webkit.org/changeset/64334, because of a bug. Then the bug was fixed, and the patch was re-landed in http://trac.webkit.org/changeset/64384, but apparently I forgot to re-submit the tests.
Comment 4 David Levin 2010-09-30 23:32:08 PDT
Comment on attachment 69424 [details]
patch #1: access the same DB in workers and the page

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

> LayoutTests/fast/workers/storage/use-same-database-in-page-and-workers.html:49
> +                log("Unexpected worker message: " + event.data);

It seems like it would be better if it didn't have to time out on failure.
Comment 5 Dumitru Daniliuc 2010-09-30 23:41:46 PDT
Created attachment 69427 [details]
patch #1: access the same DB in workers and the page

fixed.
Comment 6 Dumitru Daniliuc 2010-10-12 18:48:32 PDT
patch #1 landed: r69626.
patch #2 landed: r69631.