2010-05-15 Eric Uhrhane <ericu@chromium.org>
Reviewed by Dmitry Titov.
Add bindings for async DB API in Workers.
https://bugs.webkit.org/show_bug.cgi?id=34992
* storage/change-version-handle-reuse.html: Refactored to share code with the worker version of the test.
* storage/change-version-handle-reuse-expected.html: Removed reference to reloading, which this test doesn't do.
* storage/change-version-handle-reuse.js: This is the extracted shared core of the test.
* storage/execute-sql-args.html: Refactored to share code with the worker version of the test.
* storage/execute-sql-args.js: This is the extracted shared core of the test.
These are the worker versions of the tests; they're tiny shims around shared code.
* fast/workers/storage/execute-sql-args-worker-expected.txt: Added.
* fast/workers/storage/execute-sql-args-worker.html: Added.
* fast/workers/storage/change-version-handle-reuse-worker-expected.txt: Added.
* fast/workers/storage/change-version-handle-reuse-worker.html: Added.
This file gets included from worker database tests; it does all the boilerplate that's needed on the DOM side.
* fast/workers/storage/resources/database-worker-controller.js: Added.
This file is the boilerplate for the worker side of the database tests. It will import and run the actual test on command, and will report back completion and exceptions.
* fast/workers/storage/resources/database-worker.js: Added.
2010-05-15 Eric Uhrhane <ericu@chromium.org>
Reviewed by Dmitry Titov.
Add bindings for async DB API in Workers.
https://bugs.webkit.org/show_bug.cgi?id=34992
Tests: storage/change-version-handle-reuse-worker.html
storage/execute-sql-args-worker.html
* bindings/js/JSWorkerContextCustom.cpp: Add openDatabase binding.
(WebCore::JSWorkerContext::openDatabase):
* bindings/v8/custom/V8WorkerContextCustom.cpp: Add openDatabase stub; Chromium will need work both in V8 and in the browser process before we can turn this on there.
(WebCore::V8WorkerContext::openDatabaseCallback):
Add NoStaticTables flags to all objects now shared with workers.
* storage/Database.idl:
* storage/SQLError.idl:
* storage/SQLResultSet.idl:
* storage/SQLResultSetRowList.idl:
* storage/SQLTransaction.idl:
* workers/WorkerContext.h: Add databaseExceededQuota.
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::databaseExceededQuota): Add stub implementation for testing; you just get 5MB for now.
(WebCore::WorkerContext::openDatabase): Remove invalid assertion.
Add the IDL for the call to openDatabase.
* workers/WorkerContext.idl:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed