Intent to Deparecate: Web SQL Database in workers

174 views
Skip to first unread message

TAMURA, Kent

unread,
Jul 23, 2014, 11:15:24 PM7/23/14
to blink-dev, Michael Nordman

Primary eng (and PM) emails

tk...@chromium.org


Summary

Deprecate Web SQL Database support in workers. This doesn't cover Web SQL Database in the main context.


Motivation

The specification itself is deprecated [1], and the worker support has some code complexity in modules/webdatabase/.

We have WorkerGlobalScope::TerminationObserver only for Web SQL Database support.


[1] http://www.w3.org/TR/webdatabase/


Compatibility Risk

- This is only deprecation. The feature won't be changed.


- IE and Firefox never support Web SQL Database.

- The worker support was added in 2010.

- If we removed the features, it would be possible that some WebKit-only sites would break.


Alternative implementation suggestion for web developers

Indexed Database.


Usage information from UseCounter

http://www.chromestatus.com/metrics/feature/timeline/popularity/313

http://www.chromestatus.com/metrics/feature/timeline/popularity/314

Stable channel doesn't have these counters yet. On Beta, OpenWebDatabaseInWorker is used in 0.000003% of page views, and OpenWebDatabaseSyncInWorker is also 0.000003%.


Entry on chromestatus.com, crbug.com, or MDN

http://www.chromestatus.com/features/6330987952734208


Requesting approval to remove too?

No.



--
TAMURA Kent
Software Engineer, Google


Darin Fisher

unread,
Jul 23, 2014, 11:34:43 PM7/23/14
to TAMURA, Kent, blink-dev, Michael Nordman
LGTM (undo all the bad things!)

Elliott Sprehn

unread,
Jul 24, 2014, 12:06:28 AM7/24/14
to TAMURA, Kent, blink-dev, Michael Nordman


On Wednesday, July 23, 2014, TAMURA, Kent <tk...@chromium.org> wrote:

Primary eng (and PM) emails

tk...@chromium.org


Summary

Deprecate Web SQL Database support in workers. This doesn't cover Web SQL Database in the main context.


Motivation

The specification itself is deprecated [1], and the worker support has some code complexity in modules/webdatabase/.

We have WorkerGlobalScope::TerminationObserver only for Web SQL Database support.


[1] http://www.w3.org/TR/webdatabase/


Compatibility Risk

- This is only deprecation. The feature won't be changed.


- IE and Firefox never support Web SQL Database.

- The worker support was added in 2010.

- If we removed the features, it would be possible that some WebKit-only sites would break.


Alternative implementation suggestion for web developers

Indexed Database.


Usage information from UseCounter

http://www.chromestatus.com/metrics/feature/timeline/popularity/313

http://www.chromestatus.com/metrics/feature/timeline/popularity/314

Stable channel doesn't have these counters yet. On Beta, OpenWebDatabaseInWorker is used in 0.000003% of page views, and OpenWebDatabaseSyncInWorker is also 0.000003%.



Those numbers are so low, if they're still that low after a while on stable we should just kill it.

 - E 

Jochen Eisinger

unread,
Jul 24, 2014, 3:36:23 AM7/24/14
to Elliott Sprehn, TAMURA, Kent, blink-dev, Michael Nordman
LGTM!!

Michael Nordman

unread,
Jul 24, 2014, 9:03:54 PM7/24/14
to Jochen Eisinger, Elliott Sprehn, TAMURA, Kent, blink-dev
LGTM3!!!

Adam Barth

unread,
Jul 29, 2014, 11:45:22 AM7/29/14
to Michael Nordman, Jochen Eisinger, Elliott Sprehn, TAMURA, Kent, blink-dev
LGTM
Reply all
Reply to author
Forward
0 new messages